Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/denoland/std
/ #setMostRecentlyUsed
Method
#setMostRecentlyUsed
cache/lru_cache.ts:147–150 ·
view source on GitHub ↗
(key: K, value: V)
Source
from the content-addressed store, hash-verified
145
}
146
147
#setMostRecentlyUsed(key: K, value: V): void {
148
super.delete(key);
149
super.set(key, value);
150
}
151
152
#pruneToMaxSize(): void {
153
if
(this.size <= this.#maxSize)
return
;
Callers
2
get
Method · 0.95
set
Method · 0.95
Calls
2
delete
Method · 0.65
set
Method · 0.65
Tested by
no test coverage detected