mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-12 19:05:47 +02:00
feat(lru): add generic lru class (#2351)
Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
a1d85b7cb2
commit
014a86fc88
11 changed files with 388 additions and 220 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue