UNPKG

@nestjs/common

Version:

Nest - modern, fast, powerful node.js web framework (@common)

15 lines (14 loc) 423 B
/** * Decorator that sets the caching key used to store/retrieve cached items for * Web sockets or Microservice based apps. * * For example: * `@CacheKey('events')` * * @param key string naming the field to be used as a cache key * * @see [Caching](https://docs.nestjs.com/techniques/caching) * * @publicApi */ export declare const CacheKey: (key: string) => import("../../decorators").CustomDecorator<string>;