UNPKG

v_core_cache

Version:

Simple JavaScript Cache with expires/ttl and auto cleanups for Node and Web Application.

7 lines 305 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAlive = void 0; // Check if the item is alive || Not expired yet/ever const isAlive = (ttl) => !ttl || (typeof ttl === "number" && ttl > Date.now()); exports.isAlive = isAlive; //# sourceMappingURL=isAlive.js.map