Crate epoch_db

Crate epoch_db 

Source
Expand description

§EpochDB 🦀

An intelligent, persistent, and concurrent key-value store for Rust, designed to manage data with a lifecycle.

EpochDB is an opinionated database engine built on the robust foundation of sled. It’s designed specifically for workloads where the relevance of data changes over time, such as caching, session management, and real-time analytics.

It provides a high-level, ergonomic API by treating data’s access frequency and age as first-class citizens.

Modules§

db
The db module contains the core logic for the TransientDB database. It includes the DB struct and its implementation, which provides the primary API for interacting with the database.
metadata
The metadata module defines the Metadata struct and its associated methods. Metadata is used to track information about each key-value pair, such as its creation time, access frequency, and TTL.
metrics
The metrics module defines the Metrics struct and its associated methods.

Structs§

DB
This is the main struct which represents the database.
Metadata
Contains additional information about a key, such as its access frequency and lifecycle.