Applesauce
    Preparing search index...

    Interface CountCache

    A Keyv-compatible persistent store dedicated to count cache records and invalidation markers

    interface CountCache {
        get(key: string): Promise<unknown>;
        set(
            key: string,
            value: string | CountCacheRecord,
            ttl?: number,
        ): Promise<unknown>;
    }
    Index
    • Gets a stored record or invalidation marker

      Parameters

      • key: string

      Returns Promise<unknown>

    • Stores a value with a relative lifetime in milliseconds, where zero disables expiry

      Parameters

      Returns Promise<unknown>