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: public:
void void
insert(std::string const &key_, 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); _cache.erase(v_.first);
return (_cache.size() > _max_size); return (_cache.size() > _max_size);

Loading…
Cancel
Save