Type Alias KvEntry

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

Type declaration

  • bucket: string
  • created: Date
  • Optionaldelta?: number
  • key: string
  • length: number
  • operation: "PUT" | "DEL" | "PURGE"
  • revision: number
  • value: Uint8Array
  • json:function
    • 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

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

      Returns string