Skip to main content

ActionCache

Trait ActionCache 

Source
pub trait ActionCache: Send + Sync {
    // Required methods
    fn get_action(&self, key: &CacheKey) -> Result<Option<ActionResult>>;
    fn put_action(&self, result: &ActionResult) -> Result<()>;
}
Expand description

Store of action records (the small table).

Required Methods§

Source

fn get_action(&self, key: &CacheKey) -> Result<Option<ActionResult>>

Look up the record for a provenance key, None on a miss.

Source

fn put_action(&self, result: &ActionResult) -> Result<()>

Store a record under its key, replacing any existing one.

Implementors§