@japofc/baileys - v2.4.7
GitHub
npm
Preparing search index...
AuthKVStore
Type Alias AuthKVStore
Key-value store contract shared by all database auth adapters.
type
AuthKVStore
=
{
apply
(
writes
:
{
id
:
string
;
type
:
string
;
value
:
string
}
[]
,
removals
:
{
id
:
string
;
type
:
string
}
[]
,
)
:
Promise
<
void
>
;
clear
()
:
Promise
<
void
>
;
close
?
()
:
Promise
<
void
>
;
read
(
type
:
string
,
id
:
string
)
:
Promise
<
string
|
null
>
;
readMany
(
type
:
string
,
ids
:
string
[]
)
:
Promise
<
Record
<
string
,
string
>
>
;
write
(
type
:
string
,
id
:
string
,
value
:
string
)
:
Promise
<
void
>
;
}
Index
Methods
apply
clear
close?
read
read
Many
write
Methods
apply
apply
(
writes
:
{
id
:
string
;
type
:
string
;
value
:
string
}
[]
,
removals
:
{
id
:
string
;
type
:
string
}
[]
,
)
:
Promise
<
void
>
Parameters
writes
:
{
id
:
string
;
type
:
string
;
value
:
string
}
[]
removals
:
{
id
:
string
;
type
:
string
}
[]
Returns
Promise
<
void
>
clear
clear
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Optional
close
close
?
()
:
Promise
<
void
>
Returns
Promise
<
void
>
read
read
(
type
:
string
,
id
:
string
)
:
Promise
<
string
|
null
>
Parameters
type
:
string
id
:
string
Returns
Promise
<
string
|
null
>
read
Many
readMany
(
type
:
string
,
ids
:
string
[]
)
:
Promise
<
Record
<
string
,
string
>
>
Parameters
type
:
string
ids
:
string
[]
Returns
Promise
<
Record
<
string
,
string
>
>
write
write
(
type
:
string
,
id
:
string
,
value
:
string
)
:
Promise
<
void
>
Parameters
type
:
string
id
:
string
value
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Methods
apply
clear
close
read
read
Many
write
GitHub
npm
@japofc/baileys - v2.4.7
Loading...
Key-value store contract shared by all database auth adapters.