Registry / database / kvdb-memorydb

kvdb-memorydb

JSON →
library0.13.0rscratesunverified

A key-value in-memory database that implements the `KeyValueDB` trait.

# Cargo.toml [dependencies] kvdb-memorydb = "0.13.0"
INSTALL
IMPORT
SIG · KVDB-MEMORYDB
K
kvdb-memorydb
databaserustv0.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InMemory
use kvdb_memorydb::InMemory;

Creates an in-memory key-value store and performs a put/get operation.

use kvdb_memorydb::InMemory; use kvdb::KeyValueDB; fn main() { let db = InMemory::new(1); db.put(vec![], b"key", b"value").unwrap(); assert_eq!(db.get(vec![], b"key").unwrap(), Some(b"value".to_vec())); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.13.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Amazon
1
Resources
kvdb-memorydb — cargo add kvdb-memorydb · libregistry