6 #ifndef IROHA_ON_DEMAND_CACHE_HPP 7 #define IROHA_ON_DEMAND_CACHE_HPP 11 #include <shared_mutex> 13 #include <boost/circular_buffer.hpp> 32 mutable std::shared_timed_mutex mutex_;
33 using BatchesQueueType = boost::circular_buffer<BatchesSetType>;
41 #endif // IROHA_ON_DEMAND_CACHE_HPP
void addToBack(const BatchesSetType &batches) override
Definition: on_demand_cache.cpp:16
std::unordered_set< std::shared_ptr< shared_model::interface::TransactionBatch >, BatchPointerHasher > BatchesSetType
Definition: ordering_gate_cache.hpp:46
Definition: block_query.hpp:15
std::unordered_set< shared_model::crypto::Hash, shared_model::crypto::Hash::Hasher > HashesSetType
Definition: ordering_gate_cache.hpp:50
BatchesSetType pop() override
Definition: on_demand_cache.cpp:41
virtual const BatchesSetType & tail() const override
Definition: on_demand_cache.cpp:55
Definition: ordering_gate_cache.hpp:27
virtual const BatchesSetType & head() const override
Definition: on_demand_cache.cpp:50
Definition: on_demand_cache.hpp:19