use-key-value-store 0.1.0

Key-value store modeling primitives for RustUse
Documentation
  • Coverage
  • 100%
    31 out of 31 items documented1 out of 31 items with examples
  • Size
  • Source code size: 8.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 953.03 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-nosql
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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.