CatapultServer
v0.5.0.1 (Elephant)
|
Synchronized cache composed of timestamped hashes of (transaction) elements. More...
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< CacheViewType > | createView () const |
Returns a locked cache view based on this cache. More... | |
LockedCacheDelta< CacheDeltaType > | createDelta () |
LockableCacheDelta< CacheDeltaType > | createDetachedDelta () 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 > | |
BasicHashCache & | cache () |
Gets a typed reference to the underlying cache. More... | |
Synchronized cache composed of timestamped hashes of (transaction) elements.
|
inlineexplicit |
Creates a cache around config with the specified retention time (retentionTime).