Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/services/create-cached-resolver

lib/services/create-cached-resolver

Generic factory for cached Payload CMS collection resolvers.

Creates a resolver that looks up documents by a key field, falls back to a default document, and caches results with TTL-based expiration. Used by site-resolver and view-resolver.

Functions

createCachedResolver()

createCachedResolver<T>(options): CachedResolver<T>

Type Parameters

T

T

Parameters

options

CachedResolverOptions

Returns

CachedResolver<T>

Last updated on