Cache
Last updated
Was this helpful?
Last updated
Was this helpful?
The moss sdk provides a simple persistent cache that it will be internally used for example the scheduler.
When using the cache a .cache
folder will be created. Every item of the cache will be represented by it's own file named by its key. The default cache serializes all items as the binary format. A class is cachable if it has an IShapable implementation. You can use the source generator of by annoating your class with [GenerateShape]
The cache is accessible with MossExtension.Instance.Cache
and has the following methods:
You can also implement your own cache by implementing the ICache
interface.