Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/JavaScript
/ capacity
Method
capacity
Cache/LRUCache.js:35–37 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
33
}
34
35
get capacity() {
36
return
this.#capacity
37
}
38
39
set capacity(newCapacity) {
40
if
(newCapacity < 0) {
Callers
nothing calls this directly
Calls
1
#removeLeastRecentlyUsed
Method · 0.95
Tested by
no test coverage detected