mneme.ks:set

mneme

ks:set(key, value, opts) -> ok, err

Set a key-value pair with optional TTL

Stores the value under the key. Type is auto-detected: strings become bytes, integers that fit in int64 become integers, other numbers become floats. Pass opts.ttl (seconds) to set an expiration time.