pub type InMemoryDB = CacheDB<EmptyDBTyped<Infallible>>;Expand description
A Database implementation that stores all state changes in memory.
Aliased Type§
pub struct InMemoryDB {
pub cache: Cache,
pub db: EmptyDBTyped<Infallible>,
}Fields§
§cache: CacheThe cache that stores all state changes.
db: EmptyDBTyped<Infallible>The underlying database (DatabaseRef) that is used to load data.
Note: This is read-only, data is never written to this database.