|
Distributed Cache
|
#include <cache.h>

Public Member Functions | |
| Cache (CachePolicyInterface *cache, DataConnectorInterface *DB) | |
| bool | hasEntry (std::string container, int key) |
| int | getEntry (std::string container, int key) |
| void | erase (std::string container, int key) |
| void | reset () |
| void | insert (std::string container, int key, int value) |
| ~Cache () | |
Private Attributes | |
| CachePolicyInterface * | cache |
| DataConnectorInterface * | DB |
| std::mutex | cacheLock |
|
inline |
| Cache::~Cache | ( | ) |
| void Cache::erase | ( | std::string | container, |
| int | key | ||
| ) |

| int Cache::getEntry | ( | std::string | container, |
| int | key | ||
| ) |


| bool Cache::hasEntry | ( | std::string | container, |
| int | key | ||
| ) |


| void Cache::insert | ( | std::string | container, |
| int | key, | ||
| int | value | ||
| ) |


| void Cache::reset | ( | ) |


|
private |
|
private |
|
private |
1.8.18