Cachemere
Modular Caching Library for C++
|
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 | |
Item & | operator= (const Item &)=delete |
Item & | operator= (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 ) | |
A wrapper for items stored in the cache.