mirror of
https://github.com/openharmony/js_util_module.git
synced 2026-07-21 06:05:21 -04:00
Signed-off-by: lifansheng <lifansheng1@huawei.com>
On branch master Your branch is up to date with 'origin/master'.
This commit is contained in:
@@ -430,12 +430,12 @@ var pro = new util.LruBuffer();
|
||||
pro.put(2,10);
|
||||
pro.clear();
|
||||
```
|
||||
36.getCreatCount()
|
||||
36.getCreateCount()
|
||||
```
|
||||
import util from '@ohos.util'
|
||||
var pro = new util.LruBuffer();
|
||||
pro.put(1,8);
|
||||
var result = pro.getCreatCount();
|
||||
var result = pro.getCreateCount();
|
||||
```
|
||||
37.getMissCount()
|
||||
```
|
||||
|
||||
+2
-2
@@ -430,12 +430,12 @@ var pro = new util.LruBuffer();
|
||||
pro.put(2,10);
|
||||
pro.clear();
|
||||
```
|
||||
36.getCreatCount()
|
||||
36.getCreateCount()
|
||||
```
|
||||
import util from '@ohos.util'
|
||||
var pro = new util.LruBuffer();
|
||||
pro.put(1,8);
|
||||
var result = pro.getCreatCount();
|
||||
var result = pro.getCreateCount();
|
||||
```
|
||||
37.getMissCount()
|
||||
```
|
||||
|
||||
+1
-1
@@ -507,7 +507,7 @@ class LruBuffer
|
||||
this.cache.set(key, value);
|
||||
return former;
|
||||
}
|
||||
public getCreatCount()
|
||||
public getCreateCount()
|
||||
{
|
||||
return this.createCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user