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
8f1b4476f5
commit
7bbef9e5ae
1 changed files with 5 additions and 2 deletions
|
|
@ -53,13 +53,16 @@ public:
|
|||
insert(std::string const &key_,
|
||||
std::string const &val_)
|
||||
{
|
||||
uint64_t hash;
|
||||
uint64_t hash;
|
||||
const char *val;
|
||||
|
||||
fmt::print("insert {}={}\n",
|
||||
key_,
|
||||
val_);
|
||||
|
||||
hash = wyhash(key_.c_str(),key_.size(),0xdeadbeef,_wyp);
|
||||
hash = wyhash(key_.c_str(),key_.size(),0xdeadbeef,_wyp);
|
||||
|
||||
|
||||
_cache.insert_or_assign(hash,val_);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue