Setu-TS
    Preparing search index...

    Interface KvCacheOptions

    Wires a KV namespace up as the application's ICacheStore under CAPABILITIES.CACHE.

    0.2.0

    interface KvCacheOptions {
        binding: string;
        defaultTtlSeconds?: number;
        name?: string;
        prefix?: string;
    }
    Index
    binding: string

    The KV namespace binding name from wrangler.toml.

    defaultTtlSeconds?: number

    TTL in seconds applied when set omits one. Omitted means no expiry.

    name?: string

    Instance name. 'default' (the default) claims the bare cache token; anything else derives cache.<name>, matching CachePlugin's convention so several caches can coexist.

    prefix?: string

    Prefix applied to every cache key. Required to call clear(), and recommended whenever the namespace is shared.