Preparing search index...
The search index is not available
matter.js-monorepo
matter.js-monorepo
@matter/general
AsyncCache
Class AsyncCache<T>
Type Parameters
T
Hierarchy
GenericCache
<
T
>
AsyncCache
Index
Constructors
constructor
Properties
known
Keys
timestamps
values
Methods
clear
close
get
keys
Constructors
constructor
new
Async
Cache
<
T
>
(
name
,
generator
,
expirationMs
,
expireCallback
?
)
:
AsyncCache
<
T
>
Type Parameters
T
Parameters
name
:
string
generator
:
(
(
...
params
:
any
[]
)
=>
Promise
<
T
>
)
(
...
params
)
:
Promise
<
T
>
Parameters
Rest
...
params
:
any
[]
Returns
Promise
<
T
>
expirationMs
:
number
Optional
expireCallback
:
(
(
key
:
string
,
value
:
T
)
=>
Promise
<
void
>
)
(
key
,
value
)
:
Promise
<
void
>
Parameters
key
:
string
value
:
T
Returns
Promise
<
void
>
Returns
AsyncCache
<
T
>
Properties
Protected
Readonly
known
Keys
known
Keys
:
Set
<
string
>
= ...
Protected
Readonly
timestamps
timestamps
:
Map
<
string
,
number
>
= ...
Protected
Readonly
values
values
:
Map
<
string
,
T
>
= ...
Methods
clear
clear
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
get
(
...
params
)
:
Promise
<
T
>
Parameters
Rest
...
params
:
any
[]
Returns
Promise
<
T
>
keys
keys
(
)
:
string
[]
Returns
string
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
known
Keys
timestamps
values
Methods
clear
close
get
keys
matter.js-monorepo
Loading...