CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::HashCache Class Reference

Synchronized cache composed of timestamped hashes of (transaction) elements. More...

Inheritance diagram for catapult::cache::HashCache:
Collaboration diagram for catapult::cache::HashCache:

Public Member Functions

 HashCache (const CacheConfiguration &config, const utils::TimeSpan &retentionTime)
 Creates a cache around config with the specified retention time (retentionTime). More...
 
- Public Member Functions inherited from catapult::cache::SynchronizedCache< BasicHashCache >
 SynchronizedCache (BasicHashCache &&cache)
 Creates a synchronized decorator around cache. More...
 
LockedCacheView< CacheViewTypecreateView () const
 Returns a locked cache view based on this cache. More...
 
LockedCacheDelta< CacheDeltaTypecreateDelta ()
 
LockableCacheDelta< CacheDeltaTypecreateDetachedDelta () const
 
void commit ()
 Commits all pending changes to the underlying storage. More...
 

Additional Inherited Members

- Public Types inherited from catapult::cache::SynchronizedCache< BasicHashCache >
using CacheValueType = typename BasicHashCache ::CacheValueType
 
using CacheViewType = typename BasicHashCache ::CacheViewType
 
using CacheDeltaType = typename BasicHashCache ::CacheDeltaType
 
using CacheReadOnlyType = typename BasicHashCache ::CacheReadOnlyType
 
- Protected Member Functions inherited from catapult::cache::SynchronizedCache< BasicHashCache >
BasicHashCachecache ()
 Gets a typed reference to the underlying cache. More...
 

Detailed Description

Synchronized cache composed of timestamped hashes of (transaction) elements.

Constructor & Destructor Documentation

◆ HashCache()

catapult::cache::HashCache::HashCache ( const CacheConfiguration config,
const utils::TimeSpan retentionTime 
)
inlineexplicit

Creates a cache around config with the specified retention time (retentionTime).


The documentation for this class was generated from the following file: