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

Methods

Methods

  • Parameters

    Returns T

  • Parameters

    Returns T