ReadonlyisReadonly flag to indicate that his object implements MemoryUsage.
Gets the maximum number of entries.
Gets the number of entries.
Gets or sets the default TTL (time to live) of the cache.
Enables or disables the cache.
Gets the maximum size of the cache, in bytes.
Gets the size of entries, in bytes
Clears the cache.
Configure the cache with the specified configuration. The cache must be empty otherwise this method will throw an error.
Deletes an entry.
The key.
true if the entry was deleted, false otherwise.
Returns an array of entries.
Returns the entry with the specified key, or undefined if no entry matches this key.
The entry key.
The entry, or undefined.
Returns an approximation of the memory used by this object, in bytes.
The graphics context.
Removes stale entries.
Stores an entry in the cache, or replaces an existing entry with the same key.
The key.
The value.
The options.
The cache.