Let's make (git) history!

此提交包含在:
2018-11-03 17:12:20 +01:00
當前提交 3bfebfe8a8
共有 212 個檔案被更改,包括 11970 行新增0 行删除

20
cache/icache.h 已供應 一般檔案
查看文件

@@ -0,0 +1,20 @@
#ifndef ICACHE_H
#define ICACHE_H
#include <string>
#include <string_view>
#include <optional>
#include "../utils.h"
class ICache
{
public:
virtual std::optional<std::string> get(std::string_view key) const = 0;
virtual void put(std::string_view key, std::string val) = 0;
virtual void remove(std::string_view key) = 0;
virtual void removePrefix(std::string_view prefix) = 0;
virtual void clear() = 0;
virtual ~ICache()
{
}
};
#endif // ICACHE_H