Distributed Cache
Public Member Functions | Private Attributes | List of all members
Cache Class Reference

#include <cache.h>

Collaboration diagram for Cache:
Collaboration graph

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
 

Constructor & Destructor Documentation

◆ Cache()

Cache::Cache ( CachePolicyInterface *  cache,
DataConnectorInterface *  DB 
)
inline

◆ ~Cache()

Cache::~Cache ( )

Member Function Documentation

◆ erase()

void Cache::erase ( std::string  container,
int  key 
)
Here is the call graph for this function:

◆ getEntry()

int Cache::getEntry ( std::string  container,
int  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasEntry()

bool Cache::hasEntry ( std::string  container,
int  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ insert()

void Cache::insert ( std::string  container,
int  key,
int  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

void Cache::reset ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cache

CachePolicyInterface* Cache::cache
private

◆ cacheLock

std::mutex Cache::cacheLock
private

◆ DB

DataConnectorInterface* Cache::DB
private

The documentation for this class was generated from the following files: