Removes all data stored in the cache. If the cache has any internal state, then it must be fully reset as well.
Retrieves the cached data associated with a key. Throws an exception if no data is stored. Use has to safely check if a specific key is cached.
Key to test
Checks if the cache contains a mapping for a specified key.
Key to test
Removes the value associated with a key. The key itself is also forgotten, meaning that a call to has after calling remove will return false.
Key to remove
Associates value to key in the cache. If there is already a value stored for key, then it is overwritten.
Key to index
Value to associate
Generated using TypeDoc
A temporary key-value storage for reusable data. Data in a cache is preserved for an indeterminate amount of time, but may be evicted at any time.