Struct persist::indexed::cache::BlobCacheCore [−][src]
Expand description
In-memory cache for arbitrary objects that can be shared across multiple threads.
TODO: this cache accounts for the serialized sizes of data it contains, but perhaps should look at the in-memory size instead.
Fields
dataz: HashMap<String, (Arc<D>, usize)>
size: usize
limit: usize
Implementations
Trait Implementations
Auto Trait Implementations
impl<D> RefUnwindSafe for BlobCacheCore<D> where
D: RefUnwindSafe,
impl<D> Send for BlobCacheCore<D> where
D: Send + Sync,
impl<D> Sync for BlobCacheCore<D> where
D: Send + Sync,
impl<D> Unpin for BlobCacheCore<D>
impl<D> UnwindSafe for BlobCacheCore<D> where
D: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more