Crate rocksmap

Source
Expand description

RocksMap - A high-level typed abstraction over RocksDB in Rust

rocksmap provides a type-safe, ergonomic interface to RocksDB with map-like API and serialization/deserialization support.

Modules§

rocks
Re-export important RocksDB types and options for configuration
ttl_utils
Utility functions for TTL management

Structs§

BincodeCodec
Default implementation using bincode for serialization
RocksMap
The main key-value store abstraction over RocksDB
RocksMapBatch
A batch of write operations that can be committed atomically
RocksMapIterator
Iterator over RocksMap key-value pairs
SecondaryIndex
A secondary index that maps from a secondary key type to the primary key type

Enums§

Error
Errors that can occur in RocksMap operations

Traits§

IndexExtractor
A trait that allows extraction of secondary keys from a value
KeyCodec
Trait defining how to encode a key for storage
OptionsExt
Note: TTL filter implementation simplified for now In this version we focus on providing placeholder API that will compile Full TTL implementation requires more complex setup with RocksDB Extension trait for RocksDB Options to add TTL support
ValueCodec
Trait defining how to encode a value for storage

Type Aliases§

Result
Shorthand for Result with our error type