import { type CacheModuleOptions } from "https://deno.land/x/deno_nest@v3.15.1/modules/cache/mod.ts";
Properties
optional
store: CacheStoreName | CacheStoreMap | CacheFactoryCache storage manager. Default is memory
.
Time to live - amount of time in seconds that a response is cached before it is deleted. Subsequent request will call through the route handler and refresh the cache. Defaults to 5 seconds.
A function to determine if a value is cacheable. Defaults to only cache
optional
getCacheKey: (params: { constructorName: string; methodName: string; methodType: string; args: any[]; }) => stringA function to determine the cache key. Defaults to the request url.
optional
policy: CachePolicyThis options will be used to configure the cache-control header.