Skip to main content
Version: Next

CacheContext

CacheContext

Context for managing cache operations within an async scope

Signature
interface CacheContext {
params: {
/** Custom name for the cache entry */
name?: string;
/** Time-to-live in milliseconds */
ttl?: number | null;
tags: Set<string>;
};
}

params

property
{ /** Custom name for the cache entry */ name?: string; /** Time-to-live in milliseconds */ ttl?: number | null; tags: Set<string>; }