Expand description
Key-value storage interface for plugin state
Enums§
- KvError
- Error types specific to key-value operations
Functions§
- compare_
and_ swap - Compare and swap - set value only if current value matches expected Returns true if swap succeeded, false if current value didn’t match
- delete
- Delete a key
- exists
- Check if a key exists
- get
- Get a value by key
- get_
string - Get a value as a string
- increment
- Increment a numeric value atomically Returns the new value after increment
- list_
keys - List all keys with a given prefix
- set
- Set a value
- set_
string - Set a string value
- set_
with_ ttl - Set a value with a TTL (time-to-live) in nanoseconds