pub struct DashMapKernelCache { /* private fields */ }Expand description
DashMap-based thread-safe cache with high concurrency
Implementations§
Source§impl DashMapKernelCache
impl DashMapKernelCache
Sourcepub fn new(config: ThreadSafeKernelCacheConfig) -> Self
pub fn new(config: ThreadSafeKernelCacheConfig) -> Self
Create a new DashMap-based kernel cache
Trait Implementations§
Source§impl ThreadSafeKernelCache for DashMapKernelCache
impl ThreadSafeKernelCache for DashMapKernelCache
Source§fn insert(&self, key: KernelCacheKey, value: Float)
fn insert(&self, key: KernelCacheKey, value: Float)
Insert kernel value into cache
Source§fn stats(&self) -> CacheStatistics
fn stats(&self) -> CacheStatistics
Get cache statistics
Auto Trait Implementations§
impl !Freeze for DashMapKernelCache
impl !RefUnwindSafe for DashMapKernelCache
impl !UnwindSafe for DashMapKernelCache
impl Send for DashMapKernelCache
impl Sync for DashMapKernelCache
impl Unpin for DashMapKernelCache
impl UnsafeUnpin for DashMapKernelCache
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more