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

Method clear

Cache/LFUCache.js:228–233  ·  view source on GitHub ↗

* @method clear * @description - This method cleared the whole LFUCache * @returns {LFUCache}

()

Source from the content-addressed store, hash-verified

226 * @returns {LFUCache}
227 */
228 clear() {
229 this.cache.clear()
230 this.#frequencyMap.clear()
231
232 return this
233 }
234
235 /**
236 * @method toString

Callers 2

capacityMethod · 0.45
LFUCache.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected