@toolcog/util/cache
Toolcog utilities
Classes
LruCache<K, V>
Type Parameters
• K
• V
Constructors
new LruCache()
new LruCache<
K
,V
>(capacity
):LruCache
<K
,V
>
Parameters
• capacity: number
Returns
LruCache
<K
, V
>
Defined in
Accessors
capacity
get
capacity():number
Returns
number
Defined in
Methods
clear()
clear():
void
Returns
void
Defined in
delete()
delete(
key
):boolean
Parameters
• key: K
Returns
boolean
Defined in
get()
get(
key
):undefined
|V
Parameters
• key: K
Returns
undefined
| V
Defined in
set()
set(
key
,value
):void
Parameters
• key: K
• value: V
Returns
void