FeatureCache

Trait FeatureCache 

Source
pub trait FeatureCache: Send + Sync {
    // Required methods
    fn get(&self, key: &str) -> BoxFuture<'_, Option<GrowthBookResponse>>;
    fn set(&self, key: &str, value: GrowthBookResponse) -> BoxFuture<'_, ()>;
}

Required Methods§

Source

fn get(&self, key: &str) -> BoxFuture<'_, Option<GrowthBookResponse>>

Source

fn set(&self, key: &str, value: GrowthBookResponse) -> BoxFuture<'_, ()>

Implementors§