pnwkit 3.0 - v4.3.0
    Preparing search index...

    Interface CacheOptions

    Cache configuration options for API responses.

    Uses an LRU (Least Recently Used) cache with TTL support for efficient memory management. The cache uses FNV-1a hashing with collision-resistant algorithms to ensure data integrity.

    const cacheOptions: CacheOptions = {
    enabled: true,
    ttl: 300000, // 5 minutes
    maxSize: 500 // Store up to 500 unique queries
    };
    interface CacheOptions {
        enabled: boolean;
        maxSize?: number;
        ttl?: number;
    }
    Index
    enabled: boolean

    Enable response caching

    maxSize?: number

    Maximum number of cached responses (default: 100)

    ttl?: number

    Time-to-live for cached responses in milliseconds (default: 60000 = 1 minute)