mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 15:06:33 -05:00
policy_cache.hpp
This commit is contained in:
parent
3082d60de7
commit
0b894bf22c
1 changed files with 16 additions and 2 deletions
|
|
@ -40,6 +40,12 @@ public:
|
|||
{
|
||||
_cache.insert({key_,val_});
|
||||
}
|
||||
|
||||
std::string*
|
||||
find(char const *key_)
|
||||
{
|
||||
auto i = _cache.find(key_);
|
||||
}
|
||||
|
||||
void
|
||||
erase(const char *key_)
|
||||
|
|
@ -47,9 +53,17 @@ public:
|
|||
_cache.erase(key_);
|
||||
}
|
||||
|
||||
void
|
||||
cleanup()
|
||||
{
|
||||
|
||||
void cleanup(const int prob = 1);
|
||||
void clear(void);
|
||||
}
|
||||
|
||||
void
|
||||
clear()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private:
|
||||
unsigned _max_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue