Skip to content

createCacheKey

createCacheKey<Req, Res>(endpoint, request): CacheKeyResult<Req>

Defined in: wp-typia-rest/src/react-client-cache-key.ts:110

Build the normalized cache key for one endpoint request pair.

Req

Res

ApiEndpoint<Req, Res>

Endpoint contract used to namespace cache entries.

Req

Request payload used to derive the stable cache key.

CacheKeyResult<Req>

The normalized cache key plus the request validation result.