import{_ as e,c as t,o as d,N as c}from"./chunks/framework.0799945b.js";const b=JSON.parse('{"title":"Module: lib/lru-cache","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/lib/lru-cache.md","lastUpdated":null}'),a={name:"api/modules/lib/lru-cache.md"},o=c('
• LRUCache<K
, V
>: Object
A LRU cache intended for caching pure functions.
Name |
---|
K |
V |
Name | Type |
---|---|
constructor | <K, V>(maxSize : number ) => LRUCache <K , V > |
first | undefined | ListNode <K , V > |
last | undefined | ListNode <K , V > |
map | Map <K , ListNode <K , V >> |
maxSize | number |
get size() | number |
get | (key : K ) => undefined | V |
set | (key : K , value : V ) => void |