Constructor
new CacheWithLoad(evictPolicy, capacity, maxLoad, eqComparer)
Parameters:
Name | Type | Description |
---|---|---|
evictPolicy |
EvictionPolicy | Number | |
capacity |
Number | |
maxLoad |
Number | The maximum load, expressed as a positive number. |
eqComparer |
EqualityComparer.<TVal> |
- Source:
Methods
set(key, val, load, expireAfterMsecsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
TKey | ||
val |
TVal | ||
load |
Number | ||
expireAfterMsecs |
Number |
<optional> |
defaults to undefined. Only used if given as a positive integer. |
- Source: