pub trait Cache { // Required methods fn get(&self, query: &str) -> Option<Bytes>; fn set(&self, query: &str, response: &Bytes); }
The trait representing a caching backend
Get a cached value, or None
Set a value in the cache