-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
以目前最新的cache为例。
我是把cache文件下载下来单独测试的。
问题一
在控制台输入
下面的两块代码不符合预期
var pool = new Cache(3);`
pool.put("A");
pool.put("A"):
pool.put("B");
应该有2个缓存。但是 size已经是3了。
var pool = new Cache(3);`
pool.put("A");
pool.put("B"):
pool.put("C");
pool.put("D");
pool.put("E");
pool.put("F");
pool.put("G");
设置的缓存容量为3个.执行完之后实际缓存了5个。可以无限增加
Metadata
Metadata
Assignees
Labels
No labels