Skip to main content

Crate use_key_value_store

Crate use_key_value_store 

Source
Expand description

§use-key-value-store

Key-value store modeling primitives for RustUse.

§Experimental

use-key-value-store is experimental while use-nosql remains below 0.3.0.

§Example

use use_key_value_store::{Key, KeyPrefix, KeyValueEntry, Value};

let key = Key::with_prefix(&KeyPrefix::new("tenant:acme"), "profile");
let entry = KeyValueEntry::new(key, Value::new("cached payload"));

assert_eq!(entry.key().as_str(), "tenant:acme:profile");

§Scope

  • Key, value, prefix, namespace, bucket, pattern, and range labels.
  • Simple segment composition with : separators.
  • Small entry and range containers.

§Non-goals

  • Redis clients or protocol support.
  • Network calls.
  • Cache/database persistence.

§License

Licensed under either Apache-2.0 or MIT.

Structs§

BucketName
A bucket or logical storage name.
Key
A key-value store key.
KeyNamespace
A key namespace.
KeyPattern
A simple key pattern label.
KeyPrefix
A reusable key prefix.
KeyRange
A half-open or closed key range description.
KeyValueEntry
A key-value entry.
Value
A key-value store value payload.