@nats-io/kv
    Preparing search index...

    Type Alias KvEntry

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

    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