Type Alias linera_views::context::MemoryContext

source ·
pub type MemoryContext<E> = ViewContext<E, MemoryStore>;
Expand description

An implementation of crate::context::Context that stores all values in memory.

Aliased Type§

struct MemoryContext<E> { /* private fields */ }

Implementations§

source§

impl<E> MemoryContext<E>

source

pub fn new_for_testing( max_stream_queries: usize, namespace: &str, root_key: &[u8], extra: E, ) -> Self

Creates a Context instance in memory for testing.

Trait Implementations§

source§

impl DeletePrefixExpander for MemoryContext<()>

§

type Error = MemoryStoreError

The error type that can happen when expanding the key prefix.
source§

async fn expand_delete_prefix( &self, key_prefix: &[u8], ) -> Result<Vec<Vec<u8>>, Self::Error>

Returns the list of keys to be appended to the list.