Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Types | Public Member Functions | Public Attributes | List of all members
Akumuli::ChunkCache Struct Reference

Public Types

typedef std::tuple< int, int > KeyT
 Volume id + entry index.
 
typedef std::tuple< KeyT, size_t > QueueItemT
 
typedef std::shared_ptr
< UncompressedChunk
ItemT
 

Public Member Functions

 ChunkCache (size_t limit)
 
bool contains (KeyT key) const
 
ItemT get (KeyT key)
 
void put (KeyT key, const std::shared_ptr< UncompressedChunk > &header)
 

Public Attributes

std::map< KeyT, ItemT > cache_
 
std::list< QueueItemT > fifo_
 
size_t total_size_
 
std::mutex mutex_
 
const size_t size_limit_
 

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