Let's make (git) history!

This commit is contained in:
2018-11-03 17:12:20 +01:00
當前提交 3bfebfe8a8
共有 212 個文件被更改,包括 11970 次插入0 次删除

23
cache/fscache.h vendored Normal file
查看文件

@@ -0,0 +1,23 @@
#ifndef FSCACHE_H
#define FSCACHE_H
#include "icache.h"
class FsCache : public ICache
{
private:
std::string path;
std::string getFilePath(std::string_view path) const;
public:
FsCache(std::string directory);
std::optional<std::string> get(std::string_view key) const;
void put(std::string_view key, std::string val);
void remove(std::string_view key);
void removePrefix(std::string_view prefix);
void clear();
using ICache::ICache;
~FsCache()
{
}
};
#endif // FSCACHE_H