@nasriya/cachify
Version:
A lightweight, extensible in-memory caching library for storing anything, with built-in TTL and customizable cache types.
21 lines (20 loc) • 802 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const EventsBroker_1 = __importDefault(require("./broker/EventsBroker"));
const FilesEventsManager_1 = __importDefault(require("./managers/files/FilesEventsManager"));
const KVsEventsManager_1 = __importDefault(require("./managers/kvs/KVsEventsManager"));
class Events {
#_managers = {
kvs: new KVsEventsManager_1.default(),
files: new FilesEventsManager_1.default()
};
#_broker = new EventsBroker_1.default(this.#_managers);
get for() {
return { ...this.#_managers };
}
get broker() { return this.#_broker; }
}
exports.default = Events;