Home
Classes
tool
DoubleQueueCache
LRUCache
Modules
tool/ajax
get
post
tool/animation
hide
show
slideDown
slideToggle
slideUp
toggle
tool/browser
getBrowserType
getBrowserVersion
tool/drag
tool/fetch
get
post
tool/html
attr
html
text
tool/move
tool/other
tagUsage
tool/selector
children
eq
tool/style
css
setCompatibleStyle
Namespaces
browser
compress
LRUCache
LRUCache
LRU缓存 FIFO队列,当插入新数据时,插到尾部,并检查是否超过队列长度,若是则删除头部数据;当访问旧数据时,会将其移动到队列尾部 适合热点数据缓存,不适合偶发性、周期性批量操作
Constructor
new LRUCache
()
Source:
common/cache.mjs
,
line 18