#include <Cache.h>
Public Member Functions | |
Cache () | |
T & | get (string key) |
bool | hasKey (string key) |
void | purge () |
void | put (string key, T value) |
virtual | ~Cache () |
Private Attributes | |
queue< string > | keyQueue |
map< string, T > | keyToValue |
Cache::Cache | ( | ) | [inline] |
virtual Cache::~Cache | ( | ) | [inline, virtual] |
T& Cache::get | ( | string | key | ) | [inline] |
bool Cache::hasKey | ( | string | key | ) | [inline] |
void Cache::purge | ( | ) | [inline] |
void Cache::put | ( | string | key, |
T | value | ||
) | [inline] |
queue<string> Cache::keyQueue [private] |
map<string, T> Cache::keyToValue [private] |