Browse Source

policy_cache.hpp

getattr-cache
Antonio SJ Musumeci 8 months ago
parent
commit
7bbef9e5ae
  1. 3
      src/policy_cache.hpp

3
src/policy_cache.hpp

@ -54,12 +54,15 @@ public:
std::string const &val_) std::string const &val_)
{ {
uint64_t hash; uint64_t hash;
const char *val;
fmt::print("insert {}={}\n", fmt::print("insert {}={}\n",
key_, key_,
val_); 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_); _cache.insert_or_assign(hash,val_);
} }

Loading…
Cancel
Save