KVFS Plugin - Key-Value Store Service
This plugin provides a key-value store service through a file system interface.
DYNAMIC MOUNTING WITH AGFS SHELL:
Interactive shell: agfs:/> mount kvfs /kv agfs:/> mount kvfs /cache
Direct command: uv run agfs mount kvfs /kv uv run agfs mount kvfs /store
CONFIGURATION PARAMETERS:
Optional:
- initial_data: Map of initial key-value pairs to populate on mount
Example with initial data: agfs:/> mount kvfs /config initial_data='{"app":"myapp","version":"1.0"}'
USAGE: Set a key-value pair: echo "value" > /keys/
Get a value: cat /keys/
List all keys: ls /keys
Delete a key: rm /keys/
Rename a key: mv /keys/ /keys/
STRUCTURE: /keys/ - Directory containing all key-value pairs /README - This file
EXAMPLES:
Set a value
agfs:/> echo "hello world" > /kvfs/keys/mykey
Get a value
agfs:/> cat /kvfs/keys/mykey hello world
List all keys
agfs:/> ls /kvfs/keys
Delete a key
agfs:/> rm /kvfs/keys/mykey
Rename a key
agfs:/> mv /kvfs/keys/oldname /kvfs/keys/newname
License
Apache License 2.0