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

    Type Alias PageKv

    the KV surface this tier uses; narrowed so a test can supply a plain object

    type PageKv = {
        delete(key: string): Promise<void>;
        get(key: string, type: "text"): Promise<string | null>;
        put(
            key: string,
            value: string,
            options?: { expirationTtl?: number },
        ): Promise<void>;
    }
    Index
    • Parameters

      • key: string
      • type: "text"

      Returns Promise<string | null>

    • Parameters

      • key: string
      • value: string
      • Optionaloptions: { expirationTtl?: number }

      Returns Promise<void>