UNPKG

@amirmarmul/waba-common

Version:

![GitHub release](https://img.shields.io/github/v/release/amirmarmul/waba-common?style=flat-square)

16 lines (15 loc) 511 B
import { Cache as CacheContract } from '../../../core/domain/cache/Cache'; import { Redis } from 'ioredis'; /** * @deprecated */ export declare class RedisCache implements CacheContract { protected readonly TTL: number; protected readonly redis: Redis; private readonly namespace; constructor(); get<T>(key: string): Promise<T | null>; set(key: string, data: Record<string, unknown>, ttl?: number): Promise<void>; invalidate(key: string): Promise<void>; private getCacheKey; }