提交 d709252b 编写于 作者: S superjom

init service mode

上级 fde871a8
...@@ -26,6 +26,8 @@ public: ...@@ -26,6 +26,8 @@ public:
const static std::string meta_file_name; const static std::string meta_file_name;
enum Type { kMemory = 0, kDisk = 1 }; enum Type { kMemory = 0, kDisk = 1 };
// mode of the sevice, either reading or writing.
enum Mode { kRead = 0, kWrite = 1 };
void SetStorage(const std::string &dir) { void SetStorage(const std::string &dir) {
time_t t; time_t t;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册