diff --git a/server/modules/filter/cache/storage/storage_inmemory/inmemorystorage.cc b/server/modules/filter/cache/storage/storage_inmemory/inmemorystorage.cc index 0a28a06ec..01b29298e 100644 --- a/server/modules/filter/cache/storage/storage_inmemory/inmemorystorage.cc +++ b/server/modules/filter/cache/storage/storage_inmemory/inmemorystorage.cc @@ -51,8 +51,7 @@ InMemoryStorage::~InMemoryStorage() bool InMemoryStorage::Initialize(uint32_t* pCapabilities) { - *pCapabilities = CACHE_STORAGE_CAP_ST; - *pCapabilities = CACHE_STORAGE_CAP_MT; + *pCapabilities = (CACHE_STORAGE_CAP_ST | CACHE_STORAGE_CAP_MT); return true; } diff --git a/server/modules/filter/cache/storagereal.hh b/server/modules/filter/cache/storagereal.hh index 5c279cdb0..7c1aef3f0 100644 --- a/server/modules/filter/cache/storagereal.hh +++ b/server/modules/filter/cache/storagereal.hh @@ -21,7 +21,7 @@ public: ~StorageReal(); void get_config(CACHE_STORAGE_CONFIG* pConfig); - + cache_result_t get_info(uint32_t flags, json_t** ppInfo) const;