|
@ -27,11 +27,21 @@ |
|
|
|
|
|
|
|
|
class PolicyCache |
|
|
class PolicyCache |
|
|
{ |
|
|
{ |
|
|
|
|
|
public: |
|
|
|
|
|
typedef std::unordered_map<std::string,std::string> Map; |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
PolicyCache(); |
|
|
PolicyCache(); |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
insert |
|
|
|
|
|
|
|
|
nonstd::optional<std::string> |
|
|
|
|
|
insert(std::string const &key_, |
|
|
|
|
|
std::string &val_) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void erase(const char *fusepath); |
|
|
void erase(const char *fusepath); |
|
|
void cleanup(const int prob = 1); |
|
|
void cleanup(const int prob = 1); |
|
|
void clear(void); |
|
|
void clear(void); |
|
|