Browse Source

policy_cache.hpp

getattr-cache
Antonio SJ Musumeci 9 months ago
parent
commit
5ee6a72ec8
  1. 11
      src/policy_cache.hpp

11
src/policy_cache.hpp

@ -30,15 +30,6 @@
class PolicyCache class PolicyCache
{ {
public:
struct Value
{
Value();
uint64_t time;
StrVec paths;
};
public: public:
PolicyCache(void); PolicyCache(void);
@ -58,5 +49,5 @@ public:
private: private:
pthread_mutex_t _lock; pthread_mutex_t _lock;
std::map<std::string,Value> _cache;
std::unordered_map<std::string,Value> _cache;
}; };
Loading…
Cancel
Save