pub trait CacheLookup {
// Required method
fn lookup(&mut self, key_: &Slice) -> *mut CacheHandle;
}
Required Methods§
Sourcefn lookup(&mut self, key_: &Slice) -> *mut CacheHandle
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.