pub trait AuthzCache: Send + Sync + Debug {
    // Required methods
    fn get(&self, key: &str) -> Response;
    fn mget(&self, keys: &[&str]) -> Vec<Response>;
    fn set(&self, key: &str, value: bool);
    fn set_ex(&self, key: &str, value: bool, expiration_seconds: usize);
    fn box_clone(&self) -> Box<dyn AuthzCache>;
}

Required Methods§

source

fn get(&self, key: &str) -> Response

source

fn mget(&self, keys: &[&str]) -> Vec<Response>

source

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

source

fn set_ex(&self, key: &str, value: bool, expiration_seconds: usize)

source

fn box_clone(&self) -> Box<dyn AuthzCache>

Trait Implementations§

source§

impl Clone for Box<dyn AuthzCache>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§