Options for configuring cache set operations.

interface CacheSetOptions {
    metadata?: Record<string, any>;
    ttl?: number;
}

Properties

Properties

metadata?: Record<string, any>

Additional metadata to store with the cache entry.

ttl?: number

Time to live in milliseconds. After this time, the entry will be considered expired.