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