Search
Preparing search index...
The search index is not available
fuwa.js
Options
All
Public
Public/Protected
All
Inherited
Menu
fuwa.js
MemoryCache
Class MemoryCache
Hierarchy
MemoryCache
Implements
Cache
Index
Constructors
constructor
Properties
expire
After
max
Size
store
Methods
clear
get
set
Constructors
constructor
new
Memory
Cache
(
options
?:
MemoryCacheOptions
)
:
MemoryCache
Parameters
Optional
options:
MemoryCacheOptions
Returns
MemoryCache
Properties
Protected
expire
After
expire
After
:
number
= 10
Protected
max
Size
max
Size
:
number
= 100_000
Protected
store
store
:
Map
<
any
,
any
>
= ...
Methods
clear
clear
(
)
:
void
Cache#clear Clears your entire cache for that collection.
Returns
void
get
get
<
T
>
(
key
:
string
, fallback
:
(
)
=>
Promise
<
T
>
)
:
Promise
<
T
>
Cache#get
Type parameters
T
Parameters
key:
string
fallback:
(
)
=>
Promise
<
T
>
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
Returns
Promise
<
T
>
Stored Cache.
set
set
(
key
:
string
, data
:
any
)
:
void
Cache#set
Parameters
key:
string
data:
any
Returns
void
Stored Cache.
Exports
Memory
Cache
constructor
expire
After
max
Size
store
clear
get
set
Cache#clear Clears your entire cache for that collection.