Storage Delegate
class StorageDelegate<T : Any>(val cacheable: Boolean = false, initializer: () -> Storage<T>) : Storage<T>
A delegate class for managing storage.
Parameters
T
The type of object to be stored.
cacheable
Whether the storage should cache the item in memory.
initializer
A function to initialize the underlying storage.