Struct oasis_core_runtime::cache::CacheSet
source · pub struct CacheSet { /* private fields */ }
Expand description
A set of storage tree caches, one for each storage operation:
-
Execution and checking of transactions each have their own cache guarded by a mutex since the usual use case is that only one execution/check batch is running at any given time.
-
Queries have a thread-local cache as there can be multiple queries running at any given time and having a global lock would kill concurrency.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheSet
impl !RefUnwindSafe for CacheSet
impl Send for CacheSet
impl Sync for CacheSet
impl Unpin for CacheSet
impl !UnwindSafe for CacheSet
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)