CatapultServer
v0.5.0.1 (Elephant)
|
An interface for modifying a transactions cache. More...
Public Member Functions | |
virtual | ~BasicTransactionsCacheModifier () noexcept(false) |
virtual size_t | size () const =0 |
Returns the number of transactions in the cache. More... | |
virtual bool | add (const TTransactionInfo &transactionInfo)=0 |
virtual TTransactionInfo | remove (const Hash256 &hash)=0 |
Removes the transaction identified by hash from the cache. More... | |
An interface for modifying a transactions cache.
|
inlinevirtualnoexcept |
|
pure virtual |
Adds the transaction info (transactionInfo) to the cache. Returns true
if the transaction info was successfully added.
|
pure virtual |
Removes the transaction identified by hash from the cache.
|
pure virtual |
Returns the number of transactions in the cache.