feat(lru): add generic lru class (#2351)

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2024-01-07 21:51:46 +02:00 committed by GitHub
parent a1d85b7cb2
commit 014a86fc88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 388 additions and 220 deletions

View file

@ -454,7 +454,7 @@ class DbSlice {
std::vector<std::pair<uint64_t, ChangeCallback>> change_cb_;
// Used in temporary computations in Find item and CbFinish
mutable absl::flat_hash_set<CompactObjectView, PrimeHasher> bumped_items_;
mutable absl::flat_hash_set<CompactObjectView> bumped_items_;
// Registered by shard indices on when first document index is created.
DocDeletionCallback doc_del_cb_;