Trait CacheLookup

Source
pub trait CacheLookup {
    // Required method
    fn lookup(&mut self, key_: &Slice) -> *mut CacheHandle;
}

Required Methods§

Source

fn lookup(&mut self, key_: &Slice) -> *mut CacheHandle

| If the cache has no mapping for “key”, | returns nullptr. | | Else return a handle that corresponds to the | mapping. The caller must call | this->Release(handle) when the returned | mapping is no longer needed.

Implementors§