Setu-TS
    Preparing search index...

    Interface IKvNamespace

    A Workers KV namespace binding.

    0.2.0

    interface IKvNamespace {
        delete(key: string): Promise<void>;
        get(key: string): Promise<string | null>;
        list(options?: KvListOptions): Promise<KvListResult>;
        put(key: string, value: string, options?: KvPutOptions): Promise<void>;
    }
    Index
    • Writes a value.

      Parameters

      • key: string

        The key, at most 512 bytes

      • value: string

        The value, at most 25 MiB

      • Optionaloptions: KvPutOptions

        expirationTtl is in seconds and has a platform minimum of 60; a smaller value is rejected by KV

      Returns Promise<void>