|
@ -96,14 +96,6 @@ class LEVELDB_EXPORT Cache { |
|
|
// Return an estimate of the combined charges of all elements stored in the |
|
|
// Return an estimate of the combined charges of all elements stored in the |
|
|
// cache. |
|
|
// cache. |
|
|
virtual size_t TotalCharge() const = 0; |
|
|
virtual size_t TotalCharge() const = 0; |
|
|
|
|
|
|
|
|
private: |
|
|
|
|
|
void LRU_Remove(Handle* e); |
|
|
|
|
|
void LRU_Append(Handle* e); |
|
|
|
|
|
void Unref(Handle* e); |
|
|
|
|
|
|
|
|
|
|
|
struct Rep; |
|
|
|
|
|
Rep* rep_; |
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
} // namespace leveldb |
|
|
} // namespace leveldb |
|
|