Cache: Wrongly protected methods made public

This commit is contained in:
Johan Wikman
2016-11-25 19:12:25 +02:00
parent 124453b756
commit c3319b24a6

View File

@ -23,6 +23,14 @@ class CacheSimple : public Cache
public:
~CacheSimple();
cache_result_t getKey(const char* zDefaultDb, const GWBUF* pQuery, CACHE_KEY* pKey);
cache_result_t getValue(const CACHE_KEY& key, uint32_t flags, GWBUF** ppValue);
cache_result_t putValue(const CACHE_KEY& key, const GWBUF* pValue);
cache_result_t delValue(const CACHE_KEY& key);
protected:
CacheSimple(const char* zName,
CACHE_CONFIG& config,
@ -36,14 +44,6 @@ protected:
StorageFactory** ppFactory,
HASHTABLE** ppPending);
cache_result_t getKey(const char* zDefaultDb, const GWBUF* pQuery, CACHE_KEY* pKey);
cache_result_t getValue(const CACHE_KEY& key, uint32_t flags, GWBUF** ppValue);
cache_result_t putValue(const CACHE_KEY& key, const GWBUF* pValue);
cache_result_t delValue(const CACHE_KEY& key);
long hashOfKey(const CACHE_KEY& key);
bool mustRefresh(long key, const SessionCache* pSessionCache);