CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::BasicHashCache Class Reference
Inheritance diagram for catapult::cache::BasicHashCache:
Collaboration diagram for catapult::cache::BasicHashCache:

Public Member Functions

 BasicHashCache (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::BasicCache< TCacheDescriptor, TBaseSet, TSubViewArgs >
 BasicCache (const CacheConfiguration &config, TSubViewArgs &&... subViewArgs)
 Creates an empty cache with config and arguments (subViewArgs). More...
 
CacheViewType createView () const
 Returns a locked view based on this cache. More...
 
CacheDeltaType createDelta ()
 Returns a locked cache delta based on this cache. More...
 
CacheDeltaType createDetachedDelta () const
 
void commit (const CacheDeltaType &delta)
 Commits all pending changes from delta to the underlying storage. More...
 
- Public Member Functions inherited from catapult::utils::MoveOnly
constexpr MoveOnly ()=default
 Default constructor. More...
 
 ~MoveOnly ()=default
 Default destructor. More...
 
 MoveOnly (const NonCopyable &)=delete
 Disabled copy constructor. More...
 
 MoveOnly (MoveOnly &&)=default
 Default move constructor. More...
 
MoveOnlyoperator= (const MoveOnly &)=delete
 Disabled assignment operator. More...
 
MoveOnlyoperator= (MoveOnly &&)=default
 Default move assignment operator. More...
 

Static Private Member Functions

static CacheConfiguration DisablePatriciaTreeStorage (const CacheConfiguration &config)
 

Additional Inherited Members

- Public Types inherited from catapult::cache::BasicCache< TCacheDescriptor, TBaseSet, TSubViewArgs >
using CacheValueType = typename TCacheDescriptor::ValueType
 
using CacheViewType = typename TCacheDescriptor::CacheViewType
 
using CacheDeltaType = typename TCacheDescriptor::CacheDeltaType
 
using CacheReadOnlyType = typename CacheViewType::ReadOnlyView
 

Detailed Description

Cache composed of timestamped hashes of (transaction) elements.

Note
The cache can be pruned according to the retention time.

Constructor & Destructor Documentation

◆ BasicHashCache()

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

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

Member Function Documentation

◆ DisablePatriciaTreeStorage()

static CacheConfiguration catapult::cache::BasicHashCache::DisablePatriciaTreeStorage ( const CacheConfiguration config)
inlinestaticprivate

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