Skip to content

Commit

Permalink
delete useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahashen committed Aug 20, 2024
1 parent 3e3b0e7 commit 03f6bf0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/cache/config.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
7 changes: 3 additions & 4 deletions src/cache/redisCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions src/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include "storage/storage.h"

namespace pikiwidb {
// class PCache;
// class PCacheLoadThread;

class DB {
public:
Expand Down
3 changes: 0 additions & 3 deletions src/thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit 03f6bf0

Please sign in to comment.