Browse Source

test db_test2.cc

master
王雪飞 3 weeks ago
parent
commit
09440b7260
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      include/leveldb/db.h

+ 4
- 4
include/leveldb/db.h View File

@ -146,10 +146,10 @@ class LEVELDB_EXPORT DB {
// db->CompactRange(nullptr, nullptr);
virtual void CompactRange(const Slice* begin, const Slice* end) = 0;
// ----------------------------For TTL-----------------------------
// key设置ttl
virtual Status Put(const WriteOptions& options, const Slice& key,
const Slice& value, uint64_t ttl) = 0;
// // ----------------------------For TTL-----------------------------
// // key设置ttl
// virtual Status Put(const WriteOptions& options, const Slice& key,
// const Slice& value, uint64_t ttl) = 0;
};
// Destroy the contents of the specified database.

Loading…
Cancel
Save