@melchyore/adonis-cache
Version:
Cache package for AdonisJS V5
21 lines (20 loc) • 597 B
JavaScript
;
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 CacheHit {
constructor(key, value) {
this.key = key;
this.value = value;
this.EVENT = CacheEvents_1.default.Hit;
}
toJSON() {
return {
key: this.key,
value: this.value
};
}
}
exports.default = CacheHit;