Search
Preparing search index...
The search index is not available
Owlly
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
LruCache
Class LruCache<T>
Type parameters
T
Hierarchy
LruCache
Index
Constructors
constructor
Methods
clear
get
get
Capacity
get
Total
Cost
put
recycle
Constructors
constructor
new
Lru
Cache
(
capacity
:
number
, costCallback
?:
undefined
|
function
)
:
LruCache
Parameters
capacity:
number
Optional
costCallback:
undefined
|
function
Returns
LruCache
Methods
clear
clear
(
disposeCallback
:
function
)
:
void
Parameters
disposeCallback:
function
(
key
:
string
, value
:
T
)
:
void
Parameters
key:
string
value:
T
Returns
void
Returns
void
get
get
(
key
:
string
, missedCallback
?:
undefined
|
function
)
:
T
|
undefined
Parameters
key:
string
Optional
missedCallback:
undefined
|
function
Returns
T
|
undefined
get
Capacity
get
Capacity
(
)
:
number
Returns
number
get
Total
Cost
get
Total
Cost
(
)
:
number
Returns
number
put
put
(
key
:
string
, value
:
T
, evictCallback
?:
undefined
|
function
, abortIfFull
?:
boolean
|
undefined
)
:
boolean
Parameters
key:
string
value:
T
Optional
evictCallback:
undefined
|
function
Default value
abortIfFull:
boolean
|
undefined
= false
Returns
boolean
If some other item is evicted
recycle
recycle
(
key
:
string
, disposeCallback
?:
undefined
|
function
)
:
boolean
Parameters
key:
string
Optional
disposeCallback:
undefined
|
function
Returns
boolean
Globals
Lru
Cache
constructor
clear
get
get
Capacity
get
Total
Cost
put
recycle