Home
last modified time | relevance | path

Searched refs:LRUCache (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/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()
125 void LRUCache::MergeOtherCache(const LRUCache &other) in MergeOtherCache()
142 cJSON* LRUCache::WriteCacheToJsonValue() in WriteCacheToJsonValue()
163 void LRUCache::ReadCacheFromJsonValue(const cJSON* root) in ReadCacheFromJsonValue()
[all …]
H A Dlru_cache_disk_handler.cpp66 LRUCache oldCache(capacity_); in WriteCacheToJsonFile()
91 LRUCache diskCache(capacity_); in Get()
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/src/
H A Dlru_cache_disk_handler.cpp48 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()
121 void LRUCache::MergeOtherCache(const LRUCache &other) in MergeOtherCache()
138 cJSON* LRUCache::WriteCacheToJsonValue() in WriteCacheToJsonValue()
159 void LRUCache::ReadCacheFromJsonValue(const cJSON* root) in ReadCacheFromJsonValue()
194 void LRUCache::Clear() in Clear()
278 LRUCache oldCache(capacity_); in WriteCacheToJsonFile()
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202210/
H A Djs-apidiff-compiler-and-runtime.md37 |新增|NA|模块名: ohos.util<br>类名: LRUCache|@ohos.util.d.ts|
40 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:toString|@ohos.util.d.ts|
41 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:length|@ohos.util.d.ts|
43 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:clear|@ohos.util.d.ts|
49 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:isEmpty|@ohos.util.d.ts|
50 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:get|@ohos.util.d.ts|
51 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:put|@ohos.util.d.ts|
52 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:values|@ohos.util.d.ts|
53 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:keys|@ohos.util.d.ts|
54 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:remove|@ohos.util.d.ts|
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/
H A Djs-apidiff-compiler-and-runtime.md30 |新增|NA|模块名: ohos.util<br>类名: LRUCache|@ohos.util.d.ts|
33 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:toString|@ohos.util.d.ts|
34 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:length|@ohos.util.d.ts|
36 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:clear|@ohos.util.d.ts|
42 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:isEmpty|@ohos.util.d.ts|
43 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:get|@ohos.util.d.ts|
44 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:put|@ohos.util.d.ts|
45 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:values|@ohos.util.d.ts|
46 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:keys|@ohos.util.d.ts|
47 |新增|NA|模块名: ohos.util<br>类名: LRUCache<br>方法名 or 属性名:remove|@ohos.util.d.ts|
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/v3.2-Release/
H A Dchangelogs-util.md69 ## cl.util.3.LRUCache类contains接口参数类型变更
70 util子系统LRUCache类contains接口参数类型变更:
84 | @ohos.util | LRUCache | contains(key: object): boolean | 删除 |
85 | @ohos.util | LRUCache | contains(key: K): boolean | 变更 |
95 let pro = new util.LRUCache();
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/
H A Dchangelogs-util.md69 ## cl.util.3.LRUCache类contains接口参数类型变更
70 util子系统LRUCache类contains接口参数类型变更:
84 | @ohos.util | LRUCache | contains(key: object): boolean | 删除 |
85 | @ohos.util | LRUCache | contains(key: K): boolean | 变更 |
95 let pro = new util.LRUCache();
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/include/
H A Dlru_cache_disk_handler.h34 class LRUCache {
36 LRUCache();
38 explicit LRUCache(size_t capacity);
44 void MergeOtherCache(const LRUCache &other);
112 LRUCache cache_;
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/cache/lru_cache/include/
H A Dlru_cache.h28 class LRUCache {
30 LRUCache();
32 explicit LRUCache(size_t capacity);
38 void MergeOtherCache(const LRUCache &other);
H A Dlru_cache_disk_handler.h47 LRUCache cache_;
/ohos5.0/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_;
/ohos5.0/docs/en/release-notes/api-diff/monthly-202210/
H A Djs-apidiff-compiler-and-runtime.md37 |Added|NA|Module name: ohos.util<br>Class name: LRUCache|@ohos.util.d.ts|
40 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: toString|@oho…
41 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: length|@ohos.…
43 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: clear|@ohos.u…
49 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: isEmpty|@ohos…
50 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: get|@ohos.uti…
51 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: put|@ohos.uti…
52 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: values|@ohos.…
53 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: keys|@ohos.ut…
54 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: remove|@ohos.…
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.10.7/
H A Dchangelogs-util.md69 ## cl.util.3. contains Parameter Type in the LRUCache Class Changed
70 The **contains** parameter type in the LRUCache class is changed from **object** to **K**.
84 | @ohos.util | LRUCache | contains(key: object): boolean | Deleted |
85 | @ohos.util | LRUCache | contains(key: K): boolean | Added |
95 let pro = new util.LRUCache();
/ohos5.0/docs/en/release-notes/changelogs/v3.2-Release/
H A Dchangelogs-util.md69 ## cl.util.3. contains Parameter Type in the LRUCache Class Changed
70 The **contains** parameter type in the LRUCache class is changed from **object** to **K**.
84 | @ohos.util | LRUCache | contains(key: object): boolean | Deleted |
85 | @ohos.util | LRUCache | contains(key: K): boolean | Added |
95 let pro = new util.LRUCache();
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta4/
H A Djs-apidiff-compiler-and-runtime.md30 |Added|NA|Module name: ohos.util<br>Class name: LRUCache|@ohos.util.d.ts|
33 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: toString|@oho…
34 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: length|@ohos.…
36 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: clear|@ohos.u…
42 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: isEmpty|@ohos…
43 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: get|@ohos.uti…
44 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: put|@ohos.uti…
45 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: values|@ohos.…
46 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: keys|@ohos.ut…
47 |Added|NA|Module name: ohos.util<br>Class name: LRUCache<br>Method or attribute name: remove|@ohos.…
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/
H A Djs-apidiff-compiler-and-runtime.md7 |函数有变化|类名:LRUCache<br>方法 or 属性:contains(key: object): boolean;<br>|类名:LRUCache<br>方法 or 属性:contains…
/ohos5.0/docs/en/release-notes/api-diff/Beta5-to-v3.2-Release/
H A Djs-apidiff-compiler-and-runtime.md7 …Function changed|Class name: LRUCache<br>Method or attribute name: contains(key: object): boolean;…
/ohos5.0/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()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkts/
H A Djs-apis-util.md1851 ## LRUCache<sup>9+</sup>
1868 let pro = new util.LRUCache<number, number>();
1880 默认构造函数用于创建一个新的LRUCache实例,默认容量为64。
1903 let pro = new util.LRUCache<number, number>();
1934 let pro = new util.LRUCache<number, number>();
1957 let pro = new util.LRUCache<number, number>();
1985 let pro = new util.LRUCache<number, number>();
2004 let pro = new util.LRUCache<number, number>();
2072 let pro = new util.LRUCache<number, number>();
2099 let pro = new util.LRUCache<number, number>();
[all …]
/ohos5.0/foundation/communication/netmanager_base/utils/common_utils/include/
H A Dlru_cache.h27 template <typename T> class LRUCache {
29 LRUCache() : capacity_(DEFAULT_CAPABILITY) {} in LRUCache() function
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-compiler-and-runtime.md18 |新增|NA|类名:LRUCache;<br>方法or属性:toString(): string|@ohos.util.d.ts|
20 |新增|NA|类名:LRUCache;<br>方法or属性:length: number|@ohos.util.d.ts|
21 |新增|NA|类名:LRUCache;<br>方法or属性:getCapacity(): number;|@ohos.util.d.ts|
22 |新增|NA|类名:LRUCache;<br>方法or属性:clear(): void;|@ohos.util.d.ts|
23 |新增|NA|类名:LRUCache;<br>方法or属性:getCreateCount(): number;|@ohos.util.d.ts|
24 |新增|NA|类名:LRUCache;<br>方法or属性:getMissCount(): number;|@ohos.util.d.ts|
26 |新增|NA|类名:LRUCache;<br>方法or属性:getMatchCount(): number;|@ohos.util.d.ts|
27 |新增|NA|类名:LRUCache;<br>方法or属性:getPutCount(): number;|@ohos.util.d.ts|
28 |新增|NA|类名:LRUCache;<br>方法or属性:isEmpty(): boolean;|@ohos.util.d.ts|
31 |新增|NA|类名:LRUCache;<br>方法or属性:values(): V[];|@ohos.util.d.ts|
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-compiler-and-runtime.md304 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:toString(): string;<br>旧版本信息:|类名:LRUCache;<br>方法or属性:toString(): s…
306 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:class LRUCache<br>旧版本信息:|类名:LRUCache;<br>方法or属性:class LRUCache<br>…
309 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:length: number;<br>旧版本信息:|类名:LRUCache;<br>方法or属性:length: number;<b…
310 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:getCapacity(): number;<br>旧版本信息:|类名:LRUCache;<br>方法or属性:getCapacit…
311 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:clear(): void;<br>旧版本信息:|类名:LRUCache;<br>方法or属性:clear(): void;<br>…
313 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:getMissCount(): number;<br>旧版本信息:|类名:LRUCache;<br>方法or属性:getMissCo…
315 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:getMatchCount(): number;<br>旧版本信息:|类名:LRUCache;<br>方法or属性:getMatch…
316 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:getPutCount(): number;<br>旧版本信息:|类名:LRUCache;<br>方法or属性:getPutCoun…
317 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:isEmpty(): boolean;<br>旧版本信息:|类名:LRUCache;<br>方法or属性:isEmpty(): bo…
320 |跨平台能力有变化|类名:LRUCache;<br>方法or属性:values(): V[];<br>旧版本信息:|类名:LRUCache;<br>方法or属性:values(): V[];<br>…
[all …]
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-compiler-and-runtime.md18 |Added|NA|Class name: LRUCache;<br>Method or attribute name: toString(): string|@ohos.util.d.ts|
20 |Added|NA|Class name: LRUCache;<br>Method or attribute name: length: number|@ohos.util.d.ts|
21 |Added|NA|Class name: LRUCache;<br>Method or attribute name: getCapacity(): number;|@ohos.util.d.ts|
22 |Added|NA|Class name: LRUCache;<br>Method or attribute name: clear(): void;|@ohos.util.d.ts|
23 |Added|NA|Class name: LRUCache;<br>Method or attribute name: getCreateCount(): number;|@ohos.util.d…
24 |Added|NA|Class name: LRUCache;<br>Method or attribute name: getMissCount(): number;|@ohos.util.d.t…
26 |Added|NA|Class name: LRUCache;<br>Method or attribute name: getMatchCount(): number;|@ohos.util.d.…
27 |Added|NA|Class name: LRUCache;<br>Method or attribute name: getPutCount(): number;|@ohos.util.d.ts|
28 |Added|NA|Class name: LRUCache;<br>Method or attribute name: isEmpty(): boolean;|@ohos.util.d.ts|
31 |Added|NA|Class name: LRUCache;<br>Method or attribute name: values(): V[];|@ohos.util.d.ts|
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkts/
H A Djs-apis-util.md1852 ## LRUCache<sup>9+</sup>
1869 let pro = new util.LRUCache<number, number>();
1904 let pro = new util.LRUCache<number, number>();
1935 let pro = new util.LRUCache<number, number>();
1958 let pro = new util.LRUCache<number, number>();
1986 let pro = new util.LRUCache<number, number>();
2005 let pro = new util.LRUCache<number, number>();
2073 let pro = new util.LRUCache<number, number>();
2100 let pro = new util.LRUCache<number, number>();
2155 let pro = new util.LRUCache<number, number>();
[all …]
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/
H A Djs-apidiff-compiler-and-runtime.md304 …y changed|Class name: LRUCache;<br>Method or attribute name: toString(): string;<br>Old version in…
306 …: LRUCache;<br>Method or attribute name: class LRUCache<br>Old version information: |Class name: L…
309 …ity changed|Class name: LRUCache;<br>Method or attribute name: length: number;<br>Old version info…
310 … changed|Class name: LRUCache;<br>Method or attribute name: getCapacity(): number;<br>Old version …
311 …lity changed|Class name: LRUCache;<br>Method or attribute name: clear(): void;<br>Old version info…
313 …changed|Class name: LRUCache;<br>Method or attribute name: getMissCount(): number;<br>Old version …
315 …changed|Class name: LRUCache;<br>Method or attribute name: getMatchCount(): number;<br>Old version…
316 … changed|Class name: LRUCache;<br>Method or attribute name: getPutCount(): number;<br>Old version …
317 …y changed|Class name: LRUCache;<br>Method or attribute name: isEmpty(): boolean;<br>Old version in…
320 …lity changed|Class name: LRUCache;<br>Method or attribute name: values(): V[];<br>Old version info…
[all …]

12