DelegatingDataCache
A cache that delegates all operations to DataEntryCaches, who are lazily loaded on register.
Functions
Link copied to clipboard
Returns a DataEntryCache of the given type if its description was registered beforehand, null otherwise.
Link copied to clipboard
Returns a DataEntryCache of the given T if its description was registered beforehand, null otherwise.
Link copied to clipboard
Inserts all items into the cache. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Link copied to clipboard
open suspend fun register(vararg descriptions: DataDescription<out Any, out Any>): <Error class: unknown class>
open suspend fun register(descriptions: Iterable<DataDescription<out Any, out Any>>): <Error class: unknown class>
Registers the descriptions and preforms the necessary setup to use the type of these classes.
Registers a description and preforms the necessary setup to use the type of this class.
Link copied to clipboard
Wraps this cache in a MetricsCache, enabling logging of metrics.