mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
policy_cache.hpp
This commit is contained in:
parent
892e12ed8d
commit
e071a07ab7
1 changed files with 2 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ public:
|
|||
insert(std::string const &key_,
|
||||
std::string &val_)
|
||||
{
|
||||
if(_cache.size() > _max_size)
|
||||
_cache.erase(_cache.begin());
|
||||
_cache.insert({key_,val_});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue