UNPKG

@melchyore/adonis-cache

Version:
13 lines (12 loc) 467 B
import type { CacheRecord } from '@ioc:Adonis/Addons/Cache'; export default class BaseStore { private prefixKey; constructor(); setPrefix(prefix: string): void; get prefix(): string; calculateTTL(ttlInMilliseconds: number): number; protected buildKey(key: string): string; protected serialize(value: unknown): string; protected deserialize<T>(value: string): T; protected isStaleRecord(record: CacheRecord): boolean; }