Home > widget-integration > CacheEntry

CacheEntry type

Cached API response with timestamp.

Used by FilterAPI to cache responses and avoid redundant network requests. Technical Support teams can extend FilterAPI to customize cache invalidation logic.

Signature:

export type CacheEntry = {
	html: string;
	filter: FilterOptionsProps;
	bundles: unknown[];
	timestamp: number;
};

References: FilterOptionsProps

Example

const cacheEntry: CacheEntry = {
  html: '<div>...</div>',
  filter: { filterId: 'col-123', options: [] },
  bundles: [],
  timestamp: Date.now()
};