StorageDelegate
class StorageDelegate<T : Any>(delegate: Storage<T>, cacheStrategy: CacheStrategy = CacheStrategy.NO_CACHE) : Storage<T>
A storage class that delegates its operations to a repository. It can optionally cache the stored item in memory.
Parameters
T
The type of the object to be stored.
delegate
The repository to delegate the operations to.
cacheStrategy
The strategy for caching the item in memory.