Skip to main content

AppDataCacheHandler

A static class in Root.Township, the global namespace.

Stores small integers as files under %AppData%/ATT CACHE/OmniBot-ATT-Win-Dev(01-01)/. Used to remember the last local server scene launched.

Methods​

MemberWhat it is
static bool Clear(string cacheName)Deletes the named cache file. Returns true if it existed.
static bool Load(string cacheName, out int value)Reads the named cache file as an int. Returns false and -1 if it's missing or not a number.
static bool LoadAndClear(string cacheName, out int value)Loads the value and deletes the file. Returns true when nothing was loaded too, so the return value says little.
static void Save(string cacheName, int value)Writes the int to the named cache file, replacing any old one.