Skip to content

API reference > @kontsedal/olas-core > LocalCacheOptions

LocalCacheOptions type ​

Options for createCache(ctx, fetcher, options?). Spec §5.1.

Signature:

typescript
type LocalCacheOptions<T> = {
  key?: () => readonly unknown[];
  staleTime?: number;
  keepPreviousData?: boolean;
  initialData?: T | undefined;
};

Released under the MIT License.