Home > widget-integration > FilterStore > getCacheEntry

FilterStore.getCacheEntry() method

Retrieves a cached filter result by its key.

Signature:

getCacheEntry(key: string): CacheEntry | null;

Parameters

Parameter

Type

Description

key

string

The unique cache key identifying the filter result

Returns:

CacheEntry | null

The cached entry if found, null if the key doesn't exist in cache

Example

const cached = filterStore.getCacheEntry('filter-v1-cat:shoes-sort:price');
if (cached) {
  console.log('Cache hit:', cached.data);
}