Class KeyValueStores

java.lang.Object
com.codename1.backend.kv.KeyValueStores

public final class KeyValueStores extends Object

Opens the KeyValueStore a configuration names, and finds the one of the calling thread's server.

Setting Default
cn1.kv.url memory: memory:, redis://... or rediss://...
cn1.kv.timeout 5000 milliseconds a connection or a reply may take
cn1.kv.pool.max 16 idle connections kept

Without cn1.kv.url, Spring Boot's spring.data.redis.url is used, and without that spring.data.redis.host (with .port, .username, .password, .database and .ssl.enabled) -- so a Spring configuration carries over unchanged. Nothing set at all is the in-process store.

  • Method Details