Storage
object Storage
Entry point for all Key-Value Storage instances.
Use the factory methods on this object to obtain a Kvs or KvsExtended instance:
inMemoryKvs — volatile, no disk I/O; available from
kvs-corealone.Storage.kvsLight(...)— DataStore-backed; provided by thekvs-persistence-lightartifact.Storage.kvsOptimized(...)— SQLDelight-backed; provided bykvs-persistence-optimized.Storage.document(...)— single-document JSON storage; provided bykvs-document.
Call debug before creating any instance to enable verbose logging during development.
Storage.debug(BuildConfig.DEBUG)
val kvs = Storage.inMemoryKvs("session")Content copied to clipboard