Loki::EvictAging< DT, ST > Class Template Reference
[Eviction policies]

LRU aware of the time span of use. More...

#include <CachedFactory.h>

Inheritance diagram for Loki::EvictAging< DT, ST >:

[legend]
Collaboration diagram for Loki::EvictAging< DT, ST >:
[legend]
List of all members.

Protected Member Functions

 EvictAging ()
virtual ~EvictAging ()
void onCreate (const DT &key)
void onFetch (const DT &)
void onRelease (const DT &key)
void onDestroy (const DT &key)
void evict ()
const char * name ()

Detailed Description

template<typename DT, typename ST = unsigned>
class Loki::EvictAging< DT, ST >

LRU aware of the time span of use.

Implementation of the Aging algorithm as described in http://en.wikipedia.org/wiki/Page_replacement_algorithms .

This method is much more costly than evict LRU so if you need extreme performance consider switching to EvictLRU

Definition at line 409 of file CachedFactory.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 25 16:52:34 2007 for Loki by  doxygen 1.5.1-p1