Get a value by key
Storage key
Value or undefined if not found
Set a value with optional TTL
Storage key
Value to store
Optionalttl: number
Time to live in seconds (optional)
Delete a value by key
Storage key
Check if a key exists
Storage key
OptionalclearClear all stored values (optional)
OptionalkeysGet all keys (optional, for debugging)
OptionalsizeGet storage size/count (optional, for monitoring)
Atomically create a value only when the key is absent or expired.
Optionalttl: number
Storage that can atomically consume a value.
take()MUST read and delete the value as one indivisible operation. Aget()followed bydelete()is not equivalent: two replicas could both read the same continuation and advance one seller task twice.