mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 07:26:28 -05:00
policy_cache.hpp
This commit is contained in:
parent
f5c5a1a991
commit
8183fc5114
2054 changed files with 473146 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "nonstd/optional.hpp"
|
||||
#include "boost/unordered/concurrent_flat_map.hpp"
|
||||
#include "boost/flyweight
|
||||
#include "wyhash.h"
|
||||
|
||||
#include "fmt/core.h"
|
||||
|
|
@ -31,7 +32,8 @@
|
|||
class PolicyCache
|
||||
{
|
||||
public:
|
||||
typedef boost::concurrent_flat_map<uint64_t,std::string> Map;
|
||||
typedef boost::flyweight<std::string,boost::flyweight::no_tracking> fwstr;
|
||||
typedef boost::concurrent_flat_map<uint64_t,fwstr> Map;
|
||||
|
||||
public:
|
||||
PolicyCache(unsigned const max_size_ = 256)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue