UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

23 lines 648 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.IDsCache = void 0; const quick_lru_1 = __importDefault(require("quick-lru")); class IDsCache { constructor() { this.ids = new quick_lru_1.default({ maxSize: 2000 }); } has(id) { return this.ids.has(id); } add(id, value = true) { this.ids.set(id, value); } get(id) { return this.ids.get(id); } } exports.IDsCache = IDsCache; //# sourceMappingURL=IDsCache.js.map