CacheConfig
Configuration for a new Cache instance.
getKey
property
(id: string | number) => stringA function which generates a cache key from the given id. This key will be used to store the value in the cache.
By convention, the key should be namespaced to avoid conflicts.
Example
options
property
SetCacheKeyOptionsOptions available when setting the value in the cache.
Was this chapter helpful?