Struct akd::storage::memory::AsyncInMemoryDbWithCache[][src]

pub struct AsyncInMemoryDbWithCache { /* fields omitted */ }
Expand description

Represents an in-memory database with caching and metric calculation for benchmarking

Implementations

Creates a new in memory db with caching

Flushes the cache and clearn any associated stats

Prints db states

Prints the distribution of the lengths of entries in a db

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Log some information about the cache (hit rate, etc)

Start a transaction in the storage layer

Commit a transaction in the storage layer

Rollback a transaction

Retrieve a flag determining if there is a transaction active

Set a record in the data layer

Set multiple records in transactional operation

Retrieve a stored record from the data layer

Retrieve a batch of records by id

Retrieve the user data for a given user

Retrieve a specific state for a given user

Retrieve the user -> state version mapping in bulk. This is the same as get_user_states but with less data retrieved from the storage layer

Retrieve the last epoch <= epoch_in_question where the node with node_key was edited Read more

Build an azks instance from the properties

Build a history tree node from the properties

Build a history node state from the properties

Build a user state from the properties

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.