edgechain-memory
Session and persistent memory stores for the EdgeChain SDK.
What's in this crate
MemoryStoretrait — async key-value store with tag-based searchSessionMemory— in-processRwLock<HashMap>, cleared on dropSqliteMemoryStore— persistent SQLite store viarusqlite(bundled)
Quick start
[]
= "0.1"
= { = "1", = ["rt-multi-thread", "macros"] }
= "1"
use ;
use json;
async
Memory key conventions
| Prefix | Purpose |
|---|---|
session:<id>:<key> |
Per-session ephemeral data |
user:<key> |
Long-term user preferences |
entity:<type>:<id> |
Domain entities |
plugin:<id>:<key> |
Plugin-private storage |
License
MIT OR Apache-2.0