Lens
B-tree key/value database with batches, snapshots, sub-databases, iterators, cache, compaction, and metrics.
At a glance
| Field | Value |
|---|---|
| Crate/package | weave-lens |
| Version | 0.1.0 |
| Source | models/lens |
| Public structs | 21 |
| Public enums | 4 |
| Public traits | 1 |
| Public functions | 65 |
| Public method targets | 12 |
What developers should learn here
B-tree key/value database with batches, snapshots, sub-databases, iterators, cache, compaction, and metrics. The pages in this section are shaped around this package's real modules and exported symbols, not a fixed template. Use the API Surface page as the coverage ledger and the workflow pages for how to compose the primitives.
Page map
Get, put, and delete on the underlying B-tree.
Atomic multi-write batches.
Forward and reverse range iteration.
Point-in-time snapshots and named sub-databases.
In-memory cache tuning and compaction triggers.
Complete ledger of exported types, traits, and functions.
Source modules
examples/minimal.rs— models/lens/examples/minimal.rssrc/batch.rs— models/lens/src/batch.rssrc/block.rs— models/lens/src/block.rssrc/cache.rs— models/lens/src/cache.rssrc/config.rs— models/lens/src/config.rssrc/error.rs— models/lens/src/error.rssrc/iterator.rs— models/lens/src/iterator.rssrc/lens.rs— models/lens/src/lens.rssrc/lens_policy.rs— models/lens/src/lens_policy.rssrc/lib.rs— models/lens/src/lib.rssrc/metrics.rs— models/lens/src/metrics.rssrc/node.rs— models/lens/src/node.rssrc/snapshot.rs— models/lens/src/snapshot.rssrc/sub.rs— models/lens/src/sub.rssrc/utils.rs— models/lens/src/utils.rs
API Surface
Public API surface for `strand-blobs`: 25 structs, 2 enums, 1 traits, 57 functions. Every exported item with its source path under `models/strand-blobs`.
Key Value Operations
Key-value operations in Lens — point lookups, range scans, conditional puts, and batched commits over the B-tree backend.