KvsExtended
Extended key-value storage interface with Time-To-Live (TTL) support.
KvsExtended augments the base KVS contract with the ability to associate an expiry Duration with individual entries. Expired entries are swept by the background CleanupJob returned from cleanupJob.
This interface is experimental and guarded by ExperimentalKvsTtl. Opt in with @OptIn(ExperimentalKvsTtl::class) or the compiler flag -opt-in=com.santimattius.kvs.ExperimentalKvsTtl.
See also
Types
Builder for applying a batch of write operations with optional TTL to the store.
Functions
Returns a CleanupJob that, when started, periodically scans the store and removes entries whose TTL has elapsed.
Returns a new KvsExtendedEditor for staging write operations with optional TTL.
Returns a Flow that emits the full store snapshot on every change.