CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::HashCacheStorage Struct Reference

Policy for saving and loading hash cache data. More...

Inheritance diagram for catapult::cache::HashCacheStorage:
Collaboration diagram for catapult::cache::HashCacheStorage:

Static Public Member Functions

static void Save (const ValueType &timestampedHash, io::OutputStream &output)
 Saves timestampedHash to output. More...
 
static state::TimestampedHash Load (io::InputStream &input)
 Loads a single value from input. More...
 
- Static Public Member Functions inherited from catapult::cache::CacheStorageForBasicInsertRemoveCache< HashCacheDescriptor >
static void LoadInto (const typename HashCacheDescriptor ::ValueType &value, typename HashCacheDescriptor ::CacheDeltaType &cacheDelta)
 Loads value into cacheDelta. More...
 
static void Purge (const typename HashCacheDescriptor ::ValueType &value, typename HashCacheDescriptor ::CacheDeltaType &cacheDelta)
 Purges value from cacheDelta. More...
 

Additional Inherited Members

- Public Types inherited from catapult::cache::CacheStorageFromDescriptor< HashCacheDescriptor >
using SourceType = typename HashCacheDescriptor ::CacheViewType
 Cache view type. More...
 
using DestinationType = typename HashCacheDescriptor ::CacheDeltaType
 Cache delta type. More...
 
using KeyType = typename HashCacheDescriptor ::KeyType
 Cache key type. More...
 
using ValueType = typename HashCacheDescriptor ::ValueType
 Cache value type. More...
 

Detailed Description

Policy for saving and loading hash cache data.

Member Function Documentation

◆ Load()

state::TimestampedHash catapult::cache::HashCacheStorage::Load ( io::InputStream input)
static

Loads a single value from input.

Here is the call graph for this function:

◆ Save()

void catapult::cache::HashCacheStorage::Save ( const ValueType timestampedHash,
io::OutputStream output 
)
static

Saves timestampedHash to output.

Here is the call graph for this function:

The documentation for this struct was generated from the following files: