Skip to main content

InMemoryClient

Trait InMemoryClient 

Source
pub trait InMemoryClient: Send + Sync {
    // Required methods
    fn get(&self, key: &str) -> Option<Value>;
    fn set(&self, key: &str, value: Value) -> bool;
    fn delete(&self, key: &str) -> bool;
}
Expand description

In-process memory store. Internal mutability is the implementor’s responsibility.

Required Methods§

Source

fn get(&self, key: &str) -> Option<Value>

Source

fn set(&self, key: &str, value: Value) -> bool

Source

fn delete(&self, key: &str) -> bool

Implementors§