drupflare/worker - v1.0.4
    Preparing search index...

    Type Alias RetireKv

    the KV surface the retirement writes touch; list and delete are absent on a stub

    type RetireKv = {
        delete?(key: string): Promise<void>;
        get(key: string): Promise<string | null>;
        list?(
            options: { cursor?: string; prefix: string },
        ): Promise<
            { cursor?: string; keys: { name: string }[]; list_complete: boolean },
        >;
        put?(key: string, value: string): Promise<void>;
    }
    Index
    • Parameters

      • key: string

      Returns Promise<void>

    • Parameters

      • key: string

      Returns Promise<string | null>

    • Parameters

      • options: { cursor?: string; prefix: string }

      Returns Promise<{ cursor?: string; keys: { name: string }[]; list_complete: boolean }>

    • Parameters

      • key: string
      • value: string

      Returns Promise<void>