Skip to main content
Version: 1.x

CacheMetadata

CacheMetadata​

Configuration options for cache behavior

Signature
interface CacheMetadata {
ttl?: number | string;
name?: string;
tags?: string[];
}

ttl​

property
number | string

Time-to-live duration in milliseconds or as a string (e.g., '1h', '5m')

name​

property
string

Custom name for the cache entry

tags​

property
string[]