|
CatapultServer
v0.5.0.1 (Elephant)
|
Public Member Functions | |
| BlockStorageCache (std::unique_ptr< BlockStorage > &&pStorage, std::unique_ptr< PrunableBlockStorage > &&pStagingStorage) | |
| Creates a new cache around pStorage that uses pStagingStorage for staging blocks in order to enable two-phase commit. More... | |
| ~BlockStorageCache () | |
| Destroys the cache. More... | |
| BlockStorageView | view () const |
| Gets a read only view of the storage. More... | |
| BlockStorageModifier | modifier () |
| Gets a write only view of the storage. More... | |
Private Attributes | |
| std::unique_ptr< BlockStorage > | m_pStorage |
| std::unique_ptr< PrunableBlockStorage > | m_pStagingStorage |
| std::unique_ptr< CachedData > | m_pCachedData |
| utils::SpinReaderWriterLock | m_lock |
A cache around a BlockStorage.
| catapult::io::BlockStorageCache::BlockStorageCache | ( | std::unique_ptr< BlockStorage > && | pStorage, |
| std::unique_ptr< PrunableBlockStorage > && | pStagingStorage | ||
| ) |
Creates a new cache around pStorage that uses pStagingStorage for staging blocks in order to enable two-phase commit.
|
default |
Destroys the cache.
| BlockStorageModifier catapult::io::BlockStorageCache::modifier | ( | ) |
Gets a write only view of the storage.

| BlockStorageView catapult::io::BlockStorageCache::view | ( | ) | const |
Gets a read only view of the storage.


|
mutableprivate |
|
private |
|
private |
|
private |