Redis client with inmemory fallback.
If connection to Redis is not found or fails, storage fallbacks to inmemory KV store.
Creates a new client. Connection timeout is 1000ms
.
Gets the value for key
. If no value is found, defaultValue
is returned instead.
Set a new value
for key
. The setted value is returned.
Increments the value at key
by 1.