wasmCloud Key Value Interface
This is the key-value interface with the contract ID of wasmcloud:keyvalue
. This interface defines a set of common operations for interacting with key-value stores.
Note that things like consistency guarantees, backup, failover support, replications, and more are all concerns specific to individual providers and not the interface itself.
Capability Provider Implementations
The following is a list of implementations of the wasmcloud:keyvalue
contract. Feel free to submit a PR adding your implementation if you have a community/open source version.
Name | Vendor | Description |
---|---|---|
Redis | wasmCloud | wasmCloud key-value provider for the Redis database |
Vault | wasmCloud | wasmCloud key-value provider for the Hashicorp Vault secrets engine. |
Example Usage (🦀 Rust)
Check if a value exists in the kvstore
use Context;
use ;
async
Increment a numeric value
use *;
use ;
/// increment the counter by the amount, returning the new value
async