Browse Source

policy_cache.hpp

getattr-cache
Antonio SJ Musumeci 10 months ago
parent
commit
8777243fc8
  1. 7
      src/policy_cache.hpp

7
src/policy_cache.hpp

@ -61,16 +61,15 @@ public:
{ {
Val val; Val val;
uint64_t hash; uint64_t hash;
STRPOOL_U64 token;
val = val_; val = val_;
hash = wyhash(key_,keylen_,0xdeadbeef,_wyp); hash = wyhash(key_,keylen_,0xdeadbeef,_wyp);
_cache.insert_or_assign(hash,val_); _cache.insert_or_assign(hash,val_);
fmt::print("insert {}={} token={}\n",
fmt::print("insert {}={}\n",
key_, key_,
val_,
token);
val.get());
return val; return val;

Loading…
Cancel
Save