mod_servlet
C++Servlets
 All Classes Files Functions Variables Typedefs Macros Pages
lru_map.h File Reference

Containes the implementation of timed_lru_map class and related classes and type definitions. More...

#include <map>
#include <unordered_map>
#include <servlet/lib/linked_map.h>

Go to the source code of this file.

Classes

class  servlet::lru_map< _Key, _Tp, _MT >
 Implementation of LRU (least recently used) timed cache. More...
 

Typedefs

template<typename _Key , typename _Value , typename _Compare = std::less<>, typename _Alloc = std::allocator<std::pair<const _Key, typename std::list<std::pair<const _Key &, _Value>>::iterator>>>
using servlet::lru_tree_map = lru_map< _Key, timed_entry< _Value >, std::map< _Key, typename std::list< std::pair< const _Key &, timed_entry< _Value >>>::iterator, _Compare, _Alloc >>
 Type definition for timed_lru_map inherited from std::map
 
template<typename _Key , typename _Value , typename _Hash = std::hash<_Key>, typename _Pred = std::equal_to<_Key>, typename _Alloc = std::allocator<std::pair<const _Key, typename std::list<std::pair<const _Key &, _Value>>::iterator>>>
using servlet::lru_hash_map = lru_map< _Key, timed_entry< _Value >, std::unordered_map< _Key, typename std::list< std::pair< const _Key &, timed_entry< _Value >>>::iterator, _Hash, _Pred, _Alloc >>
 Type definition for timed_lru_map inherited from std::unordered_map
 

Detailed Description

Containes the implementation of timed_lru_map class and related classes and type definitions.