kvsLight

Returns a persistent Kvs using the light backend.

Light persistence is ideal for small to medium key counts and low binary overhead. Requires kvs-persistence-light on the classpath.

When both light and optimized backends are present, call kvsLight explicitly for light persistence or kvsOptimized (from kvs-persistence-optimized) for optimized persistence.


fun Storage.kvsLight(name: String, ttl: Ttl? = null, encrypted: Boolean = false): KvsExtended

Returns a persistent KvsExtended with optional TTL and encryption using the light backend. Requires kvs-persistence-light on the classpath.


fun Storage.kvsLight(name: String, ttl: Duration? = null, encrypted: Boolean = false): KvsExtended

Returns a persistent KvsExtended with optional TTL and encryption using the light backend.