@gabliam/cache
Version:
cache plugin for gabliam
28 lines (27 loc) • 677 B
TypeScript
import { CacheOptions } from './cache-options';
/**
* Type of the `CachePut` decorator / constructor function.
*/
export interface CachePutDecorator {
/**
* Decorator that marks a method triggers a cache put operation.
*
* @usageNotes
*
* ```typescript
* @Service()
* class SampleController {
* @CachePut('test')
* saveToDatabase(entity: any) {
* }
* }
* ```
*
*/
(value?: string | string[] | CacheOptions): MethodDecorator;
/**
* see the `@CachePut` decorator.
*/
new (value?: string | string[] | CacheOptions): any;
}
export declare const CachePut: CachePutDecorator;