policy_cache.hpp

This commit is contained in:
Antonio SJ Musumeci 2024-03-12 19:30:01 -05:00
parent d963256c92
commit a8e2d3f051

View File

@ -60,7 +60,7 @@ public:
hash = wyhash(key_.c_str(),key_.size(),0xdeadbeef,_wyp);
token = strpool_inject(&_strpool,val_.c_str(),val_.size());
ptr = strpool_cstr(&_strpool,token);
_cache.insert_or_assign(hash,val_);
_cache.insert_or_assign(hash,ptr);
fmt::print("insert {}={} token={} ptr={}\n",
key_,