Skip to main content

Module keyvalue

Module keyvalue 

Source
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

Type Aliases§

Duration