UNPKG

@melchyore/adonis-cache

Version:
23 lines (22 loc) 711 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const CacheEvents_1 = __importDefault(require("../Enums/CacheEvents")); class CacheKeyWritten { constructor(key, value, expiration) { this.key = key; this.value = value; this.expiration = expiration; this.EVENT = CacheEvents_1.default.KeyWritten; } toJSON() { return { key: this.key, value: this.value, expiration: this.expiration }; } } exports.default = CacheKeyWritten;