Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 2.39 KB

File metadata and controls

36 lines (28 loc) · 2.39 KB

GenXdev.Data.KeyValueStore

Overview

GenXdev.Data.KeyValueStore provides a persistent JSON-based key-value store on the local filesystem. You create named stores, set and get values by key, enumerate keys, and remove entries or entire stores.

What It Offers

Command Aliases What it does
Set-ValueByKeyInStore setvalue Store a value under a key in a named key-value store
Get-ValueByKeyFromStore getvalue Retrieve a value by key from a named store
Get-StoreKeys getkeys List all keys in a named key-value store
Get-KeyValueStoreNames getstorenames List all available key-value stores
Get-KeyValueStorePath Get the filesystem path for a named store
Remove-KeyFromStore removekey Remove a single key from a store
Remove-KeyValueStore Delete an entire key-value store

How It All Comes Together

Each key-value store is a named JSON file on disk. Set-ValueByKeyInStore (setvalue) writes a value under a key. Get-ValueByKeyFromStore (getvalue) reads it back. Get-StoreKeys (getkeys) lists all keys in a store. Remove-KeyFromStore (removekey) removes a single key. Remove-KeyValueStore deletes an entire store. Get-KeyValueStoreNames (getstorenames) lists all available stores. Get-KeyValueStorePath returns the filesystem path for a store.

See Also