pub trait Object {
fn put(&mut self, id: ObjectId, kind: Kind, data: &[u8]);
fn get(&mut self, id: &ObjectId, out: &mut Vec<u8>) -> Option<Kind>;
}
Expand description
A way of storing and retrieving entire objects to and from a cache.
pub trait Object {
fn put(&mut self, id: ObjectId, kind: Kind, data: &[u8]);
fn get(&mut self, id: &ObjectId, out: &mut Vec<u8>) -> Option<Kind>;
}
A way of storing and retrieving entire objects to and from a cache.