Interface KvEntry

interface KvEntry {
    bucket: string;
    created: Date;
    delta?: number;
    key: string;
    length: number;
    operation: "PUT" | "DEL" | "PURGE";
    revision: number;
    value: Uint8Array;
    json<T>(): T;
    string(): string;
}

Hierarchy (view full)

Properties

bucket: string
created: Date
delta?: number
key: string
length: number
operation: "PUT" | "DEL" | "PURGE"
revision: number
value: Uint8Array

Methods

  • Convenience method to parse the entry payload as JSON. This method will throw an exception if there's a parsing error;

    Type Parameters

    • T

    Returns T

  • Convenience method to parse the entry payload as string. This method may throw an exception if there's a conversion error

    Returns string