Cache class
Provides a local, in-memory cache.
Signature:
declare class Cache
Remarks
The cache is attached to the Context and is used for both API resource caching and local resource caching (e.g. intermediate canvas and image results).
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Create a cache instance. |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
number |
Get the number of items in the cache. |
Methods
Method |
Modifiers |
Description |
---|---|---|
|
Clean up expired keys. | |
Clear the cache. | ||
Delete a key. | ||
Get a list of dependencies. | ||
Destroy this cache instance. | ||
Indicate that an owner was disposed. | ||
Get a list of entries. | ||
Get a value by key. | ||
Check if the cache has a key. | ||
Mark a key as required by an owner. | ||
Set a value by key. | ||
Set multiple values with an object. | ||
Mark a key as not longer required by an owner. |