diff --git a/src/cache/config.h b/src/cache/config.h index b8d71e3c2..158364d9a 100644 --- a/src/cache/config.h +++ b/src/cache/config.h @@ -1,4 +1,4 @@ -// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved. +// Copyright (c) 2024-present, Qihoo, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. diff --git a/src/cache/redisCache.h b/src/cache/redisCache.h index 7d4b22145..ffde1c4e9 100644 --- a/src/cache/redisCache.h +++ b/src/cache/redisCache.h @@ -18,7 +18,6 @@ extern "C" { #include "rediscache/redis.h" } -//#include "rediscache/redis.h" #include "config.h" #include "pstd/pstd_status.h" #include "storage/storage.h" @@ -43,10 +42,10 @@ class RedisCache { // Normal Commands bool Exists(std::string &key); int64_t DbSize(void); - void FlushCache(void); // 清空cache + void FlushCache(void); - Status Del(const std::string &key); // 删除某个key - Status Expire(std::string &key, int64_t ttl); // 设置键的TTL + Status Del(const std::string &key); + Status Expire(std::string &key, int64_t ttl); Status Expireat(std::string &key, int64_t ttl); Status TTL(std::string &key, int64_t *ttl); Status Persist(std::string &key); diff --git a/src/db.h b/src/db.h index acf143b31..77ea3603f 100644 --- a/src/db.h +++ b/src/db.h @@ -16,8 +16,6 @@ #include "storage/storage.h" namespace pikiwidb { -// class PCache; -// class PCacheLoadThread; class DB { public: diff --git a/src/thread.cc b/src/thread.cc index e58085b3e..d91f56865 100644 --- a/src/thread.cc +++ b/src/thread.cc @@ -6,9 +6,6 @@ */ #include "thread.h" -// #include "net/include/net_define.h" -// #include "net/src/net_thread_name.h" -// #include "pstd/xdebug.h" namespace pikiwidb {