Cachemere
Modular Caching Library for C++
Public Member Functions | Public Attributes | List of all members
cachemere::Item< Value > Struct Template Reference

A wrapper for items stored in the cache. More...

#include <item.h>

Public Member Functions

 Item (size_t key_size, Value value, size_t value_size)
 
 Item (Item &&other) noexcept=default
 
 Item (const Item &other)=delete
 
Itemoperator= (const Item &)=delete
 
Itemoperator= (Item &&) noexcept=default
 

Public Attributes

size_t m_key_size
 The size of the key.
 
Value m_value
 The item stored in cache.
 
size_t m_value_size
 The size of the item.
 
size_t m_total_size
 The total size of the item (m_key_size + m_value_size)
 

Detailed Description

template<typename Value>
struct cachemere::Item< Value >

A wrapper for items stored in the cache.


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