import { JsonCompatible } from '@vendure/common/lib/shared-types'; import { CacheStrategy, SetCacheKeyOptions } from '../../config/system/cache-strategy'; import { RedisCachePluginInitOptions } from './types'; /** * @description * A {@link CacheStrategy} which stores cached items in a Redis instance. * This is a high-performance cache strategy which is suitable for production use. * * Note: To use this strategy, you need to manually install the `ioredis` package: * * ```shell * npm install ioredis@^5.3.2 * ``` * * @docsCategory cache * @since 3.1.0 */ export declare class RedisCacheStrategy implements CacheStrategy { private options; private client; constructor(options: RedisCachePluginInitOptions); init(): Promise; destroy(): Promise; get>(key: string): Promise; set>(key: string, value: T, options?: SetCacheKeyOptions): Promise; delete(key: string): Promise; invalidateTags(tags: string[]): Promise; private namespace; private tagNamespace; }