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

@ -449,3 +449,12 @@ class CompactObjectView {
};
} // namespace dfly
namespace std {
template <> struct hash<dfly::CompactObjectView> {
std::size_t operator()(const dfly::CompactObjectView& obj) const {
return obj.Hash();
}
};
} // namespace std