UNPKG

@melchyore/adonis-cache

Version:
11 lines (10 loc) 447 B
import TaggedCache from './TaggedCache'; export default class RedisTaggedCache extends TaggedCache { static readonly REFERENCE_KEY_FOREVER = "forever_ref"; static readonly REFERENCE_KEY_STANDARD = "standard_ref"; put<T = any>(key: string, value: T, ttl?: number): Promise<boolean>; forever<T = any>(key: string, value: T): Promise<boolean>; private pushStandardKeys; private pushKeys; private referenceKey; }