MCPcopy Index your code
hub / github.com/TheAlgorithms/JavaScript / capacity

Method capacity

Cache/LFUCache.js:73–75  ·  view source on GitHub ↗

* Get the capacity of the LFUCache * @returns {number}

()

Source from the content-addressed store, hash-verified

71 * @returns {number}
72 */
73 get capacity() {
74 return this.#capacity
75 }
76
77 /**
78 * Get the current size of LFUCache

Callers

nothing calls this directly

Calls 2

#removeCacheNodeMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected