1
0
Fork 0

cache: Add dummy NoCache class

Esse commit está contido em:
Albert S. 2023-07-29 09:45:51 +02:00
commit ec3cbe3f76
1 arquivos alterados com 30 adições e 0 exclusões

30
cache/nocache.h externo Normal file
Ver arquivo

@ -0,0 +1,30 @@
#include "icache.h"
class NoCache : public ICache
{
public:
NoCache(std::string p)
{
}
virtual std::optional<std::string> get(std::string_view key) const
{
return {};
}
virtual void put(std::string_view key, std::string val)
{
return;
}
virtual void remove(std::string_view key)
{
return;
}
virtual void removePrefix(std::string_view prefix)
{
return;
}
virtual void clear()
{
return;
}
};