kvsOptimized

Returns a persistent Kvs using the optimized backend.

Optimized persistence is designed for large key counts and efficient TTL cleanup. Requires kvs-persistence-optimized on the classpath.

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


fun Storage.kvsOptimized(name: String, ttl: Ttl? = null): KvsExtended
fun Storage.kvsOptimized(name: String, ttl: Duration? = null): KvsExtended

Returns a persistent KvsExtended with optional TTL using the optimized backend.