MetricsCache
A DataCache that logs usage statistics via its logger.
Functions
Returns a DataEntryCache of the given type if its description was registered beforehand, null otherwise.
Returns a DataEntryCache of the given T if its description was registered beforehand, null otherwise.
Inserts a new item into the cache. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Inserts a new expiring item into the cache for ttl. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Inserts new expiring items into the cache for ttl. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Inserts a new item into the cache until it expires. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Inserts all items into the cache. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Registers a description and preforms the necessary setup to use the type of this class.
Registers the descriptions and preforms the necessary setup to use the type of these classes.
Wraps this cache in a MetricsCache, enabling logging of metrics.