Skip to main content
Version: Next (2.x)

ScopeCacheKeyMap<Scopes>

ScopeCacheKeyMap<Scopes> = { [K in keyof Scopes]?: ScopeCacheKeyFn<Scopes[K]> }

Per-scope overrides for cache key generation. Provide an entry when the scope's argument can't be safely auto-serialized (class instances, Map, etc.) or when a more compact key is preferable.

Type Parameters

Type Parameter

Scopes extends ScopesShape