Documentation
Preparing search index...
@mysten/sui
client
ClientCache
Class ClientCache
Index
Constructors
constructor
Methods
clear
read
read
Sync
scope
Constructors
constructor
new
ClientCache
(
__namedParameters
?:
ClientCacheOptions
)
:
ClientCache
Parameters
__namedParameters
:
ClientCacheOptions
= {}
Returns
ClientCache
Methods
clear
clear
(
prefix
?:
string
[]
)
:
void
Parameters
Optional
prefix
:
string
[]
Returns
void
read
read
<
T
>
(
key
:
[
string
,
...
string
[]
]
,
load
:
()
=>
T
|
Promise
<
T
>
)
:
T
|
Promise
<
T
>
Type Parameters
T
Parameters
key
:
[
string
,
...
string
[]
]
load
:
()
=>
T
|
Promise
<
T
>
Returns
T
|
Promise
<
T
>
read
Sync
readSync
<
T
>
(
key
:
[
string
,
...
string
[]
]
,
load
:
()
=>
T
)
:
T
Type Parameters
T
Parameters
key
:
[
string
,
...
string
[]
]
load
:
()
=>
T
Returns
T
scope
scope
(
prefix
:
string
|
string
[]
)
:
ClientCache
Parameters
prefix
:
string
|
string
[]
Returns
ClientCache
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
clear
read
read
Sync
scope
Documentation
Loading...