@melchyore/adonis-cache
Version:
Cache package for AdonisJS V5
15 lines (14 loc) • 448 B
TypeScript
import type { CacheEventContract } from '@ioc:Adonis/Addons/Cache';
import CacheEvents from '../Enums/CacheEvents';
export default class CacheKeyWritten implements CacheEventContract {
key: string;
value: unknown;
expiration: number;
EVENT: CacheEvents;
constructor(key: string, value: unknown, expiration: number);
toJSON(): {
key: string;
value: unknown;
expiration: number;
};
}