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