Preparing search index...
The search index is not available
@nats-io/kv
@nats-io/kv
KvCodec
Interface KvCodec<T>
An interface for encoding and decoding values before they are stored or returned to the client.
interface
KvCodec
<
T
>
{
decode
(
k
:
T
)
:
T
;
encode
(
k
:
T
)
:
T
;
}
Type Parameters
T
Index
Methods
decode
encode
Methods
decode
decode
(
k
)
:
T
Parameters
k
:
T
Returns
T
encode
encode
(
k
)
:
T
Parameters
k
:
T
Returns
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
decode
encode
@nats-io/kv
Loading...
An interface for encoding and decoding values before they are stored or returned to the client.