Browse Source

policy_cache.hpp

getattr-cache
Antonio SJ Musumeci 8 months ago
parent
commit
51f80d0116
  1. 4
      src/policy_cache.hpp

4
src/policy_cache.hpp

@ -39,9 +39,9 @@ public:
public:
void
insert(std::string const &key_,
std::string &val_)
std::string const &val_)
{
_cache.visit_while([&](Map::value_type &v_)
_cache.visit_while([&](Map::value_type const &v_)
{
_cache.erase(v_.first);
return (_cache.size() > _max_size);

Loading…
Cancel
Save