mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
policy_cache.hpp
This commit is contained in:
parent
793383332c
commit
2dca414464
1 changed files with 4 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ public:
|
|||
insert(std::string const &key_,
|
||||
std::string const &val_)
|
||||
{
|
||||
uint64_t hash;
|
||||
// while(_cache.size() > _max_size)
|
||||
// {
|
||||
// std::string key;
|
||||
|
|
@ -59,7 +60,9 @@ public:
|
|||
fmt::print("insert {}={}\n",
|
||||
key_,
|
||||
val_);
|
||||
_cache.insert_or_assign(key_,val_);
|
||||
|
||||
hash = wyhash(key_.c_str(),key_.size(),0xdeadbeef,_wyp);
|
||||
_cache.insert_or_assign(hash,val_);
|
||||
}
|
||||
|
||||
const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue