rong_storage 0.3.0

Storage module for RongJS
docs.rs failed to build rong_storage-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: rong_storage-0.1.1

rong_storage

Key-value storage backed by a local database file.

JS APIs

  • new Storage(path, options?) — construct a storage instance directly
    • Options: maxKeySize, maxValueSize, maxDataSize
  • Storage instance methods:
    • set(key, value) — store a key-value pair
    • get(key) — retrieve a value by key
    • delete(key) — remove a key
    • clear() — remove all entries
    • list(prefix?) — list keys, optionally filtered by prefix
    • info() — get storage info (currentSize, limitSize, keyCount)

Rust API

  • Storage::new(path, options) — create a pre-configured instance from Rust, useful for environments that inject instances via a platform namespace instead of exposing the JS constructor.