|
@ -32,7 +32,7 @@ |
|
|
class PolicyCache |
|
|
class PolicyCache |
|
|
{ |
|
|
{ |
|
|
public: |
|
|
public: |
|
|
typedef boost::concurrent_flat_map<uint64_t,std::string> Map; |
|
|
|
|
|
|
|
|
typedef boost::concurrent_flat_map<uint64_t,> Map; |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
PolicyCache(unsigned const max_size_ = 256) |
|
|
PolicyCache(unsigned const max_size_ = 256) |
|
@ -43,6 +43,11 @@ public: |
|
|
strpool_init(&_strpool,&config); |
|
|
strpool_init(&_strpool,&config); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
~PolicyCache() |
|
|
|
|
|
{ |
|
|
|
|
|
strpool_term(&_strpool); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
void |
|
|
void |
|
|
insert(std::string const &key_, |
|
|
insert(std::string const &key_, |
|
|