pub struct Cache { /* private fields */ }
Expand description
Data caching module.
Values
data: BTreeMap<u64, Data>
- Cache data;keys: Vec<String>
- Stored keys.
Notice
All Keys
encode in fnv1a_64.
A cache is a simple set of Key
=Value
.
A key
is a unique string, but can be grouped by pattern.
To do this, you need to insert the symbol :
into the line.
This does not change the logic of the cache in any way, other than removing data from it.
If key
ends with a :
, all data beginning with that key is deleted.
Security
With a large cache, the del
operation can block it for a long time.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnwindSafe for Cache
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more