@melchyore/adonis-cache
Version:
Cache package for AdonisJS V5
11 lines (10 loc) • 447 B
TypeScript
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;
}