Skip to main content

CacheOps

Trait CacheOps 

Source
pub trait CacheOps: Send + Sync {
    // Required methods
    fn handle_command(&self, body: &str) -> (u16, String);
    fn handle_get(&self, key: &str) -> (u16, String);
    fn handle_delete(&self, key: &str) -> (u16, String);
}
Expand description

Cache operations used by the router.

Required Methods§

Source

fn handle_command(&self, body: &str) -> (u16, String)

Source

fn handle_get(&self, key: &str) -> (u16, String)

Source

fn handle_delete(&self, key: &str) -> (u16, String)

Implementors§