Search
Preparing search index...
The search index is not available
@mango-run/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@mango-run/core
Cache
Class Cache<T>
Type parameters
T
Hierarchy
Cache
Implements
LifeCycle
Index
Constructors
constructor
Properties
data
is
Loading
timer
updated
At
Methods
destroy
get
Constructors
constructor
new
Cache
<
T
>
(
updater
:
(
)
=>
Promise
<
T
>
, config
:
CacheConfig
)
:
Cache
<
T
>
Type parameters
T
Parameters
updater:
(
)
=>
Promise
<
T
>
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
config:
CacheConfig
Returns
Cache
<
T
>
Properties
data
data
:
null
|
Promise
<
T
>
= null
Private
is
Loading
is
Loading
:
boolean
= false
Private
timer
timer
:
any
updated
At
updated
At
:
number
= 0
Methods
destroy
destroy
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
get
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
Exports
Cache
constructor
data
is
Loading
timer
updated
At
destroy
get
Generated using
TypeDoc