Home
last modified time | relevance | path

Searched refs:LRUCache (Results 1 - 9 of 9) sorted by relevance

/foundation/communication/netstack/frameworks/js/napi/http/cache/lru_cache/src/
H A Dlru_cache.cpp47 LRUCache::Node::Node(std::string key, std::unordered_map<std::string, std::string> value) in Node()
52 LRUCache::LRUCache() : capacity_(MAX_SIZE), size_(0) {} in LRUCache() function in OHOS::NetStack::Http::LRUCache
54 LRUCache::LRUCache(size_t capacity) : capacity_(std::min<size_t>(MAX_SIZE, capacity)), size_(0) {} in LRUCache() function in OHOS::NetStack::Http::LRUCache
56 void LRUCache::AddNode(const Node &node) in AddNode()
63 void LRUCache::MoveNodeToHead(const std::list<Node>::iterator &it) in MoveNodeToHead()
72 void LRUCache::EraseTailNode() in EraseTailNode()
83 std::unordered_map<std::string, std::string> LRUCache::Get(const std::string &key) in Get()
96 void LRUCache
[all...]
H A Dlru_cache_disk_handler.cpp66 LRUCache oldCache(capacity_); in WriteCacheToJsonFile()
91 LRUCache diskCache(capacity_); in Get()
/foundation/communication/netstack/frameworks/js/napi/http/cache/lru_cache/include/
H A Dlru_cache.h28 class LRUCache { class
30 LRUCache();
32 explicit LRUCache(size_t capacity);
38 void MergeOtherCache(const LRUCache &other);
H A Dlru_cache_disk_handler.h47 LRUCache cache_;
/foundation/communication/netstack/frameworks/cj/http/src/
H A Dlru_cache_disk_handler.cpp43 LRUCache::Node::Node(std::string key, std::unordered_map<std::string, std::string> value) in Node()
48 LRUCache::LRUCache() : capacity_(MAX_SIZE), size_(0) {} in LRUCache() function in OHOS::NetStack::Http::LRUCache
50 LRUCache::LRUCache(size_t capacity) : capacity_(std::min<size_t>(MAX_SIZE, capacity)), size_(0) {} in LRUCache() function in OHOS::NetStack::Http::LRUCache
52 void LRUCache::AddNode(const Node &node) in AddNode()
59 void LRUCache::MoveNodeToHead(const std::list<Node>::iterator &it) in MoveNodeToHead()
68 void LRUCache::EraseTailNode() in EraseTailNode()
79 std::unordered_map<std::string, std::string> LRUCache::Get(const std::string &key) in Get()
92 void LRUCache
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Ddns_resolv_config.h47 NetManagerStandard::LRUCache<AddrInfo> &GetCache();
58 DelayedTaskWrapper(std::string hostName, NetManagerStandard::LRUCache<AddrInfo> &cache);
67 NetManagerStandard::LRUCache<AddrInfo> &cache_;
78 NetManagerStandard::LRUCache<AddrInfo> cache_;
/foundation/communication/netstack/frameworks/cj/http/include/
H A Dlru_cache_disk_handler.h34 class LRUCache { class
36 LRUCache();
38 explicit LRUCache(size_t capacity);
44 void MergeOtherCache(const LRUCache &other);
112 LRUCache cache_;
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/
H A Ddns_resolv_config.cpp20 NetManagerStandard::LRUCache<AddrInfo> &cache) in DelayedTaskWrapper()
105 NetManagerStandard::LRUCache<AddrInfo> &DnsResolvConfig::GetCache() in GetCache()
/foundation/communication/netmanager_base/utils/common_utils/include/
H A Dlru_cache.h27 template <typename T> class LRUCache { class
29 LRUCache() : capacity_(DEFAULT_CAPABILITY) {} in LRUCache() function in OHOS::NetManagerStandard::LRUCache

Completed in 3 milliseconds