UNPKG

423 BTypeScriptView Raw
1/**
2 * Decorator that sets the caching key used to store/retrieve cached items for
3 * Web sockets or Microservice based apps.
4 *
5 * For example:
6 * `@CacheKey('events')`
7 *
8 * @param key string naming the field to be used as a cache key
9 *
10 * @see [Caching](https://docs.nestjs.com/techniques/caching)
11 *
12 * @publicApi
13 */
14export declare const CacheKey: (key: string) => import("../../decorators").CustomDecorator<string>;