Trait pedis_core::IStore

source ·
pub trait IStore {
    // Required methods
    fn set(&mut self, k: String, v: Value) -> Result<(), StoreError>;
    fn get(&self, k: String, vk: ValueKind) -> Result<&Value, StoreError>;
}
Expand description

Defines the storage interface

Required Methods§

source

fn set(&mut self, k: String, v: Value) -> Result<(), StoreError>

Set given value using specified key

source

fn get(&self, k: String, vk: ValueKind) -> Result<&Value, StoreError>

Retrieves a key from the store

Implementors§