export interface CacheOptions { cacheKey: string; expire: number | (() => number); nonExistsExpire?: number; codec?: string; } export declare const cache: (opt: CacheOptions) => (_: any, __: string, descriptor: PropertyDescriptor) => void;