pub struct CacheManager {
pub transactions: TransactionCache,
pub utxos: UtxoCache,
pub block_headers: BlockHeaderCache,
/* private fields */
}Expand description
Unified cache manager
Fields§
§transactions: TransactionCache§utxos: UtxoCache§block_headers: BlockHeaderCacheImplementations§
Source§impl CacheManager
impl CacheManager
Sourcepub fn new(config: CacheConfig) -> Self
pub fn new(config: CacheConfig) -> Self
Create a new cache manager
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create with default configuration
Sourcepub async fn overall_stats(&self) -> OverallCacheStats
pub async fn overall_stats(&self) -> OverallCacheStats
Get overall cache statistics
Auto Trait Implementations§
impl Freeze for CacheManager
impl !RefUnwindSafe for CacheManager
impl Send for CacheManager
impl Sync for CacheManager
impl Unpin for CacheManager
impl !UnwindSafe for CacheManager
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