mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-04-21 12:31:43 +00:00
policy_cache.hpp
This commit is contained in:
@@ -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_});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user