A simple key-value cache with per-entry expiry dates. Version 0.3.0, maintained by Protocol Labs (IPFS ecosystem). Provides basic put/get/has operations with customizable validity periods. Suitable for IPFS PubSub and other distributed systems requiring ephemeral caching. Low dependency footprint.
npm install time-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a TimeCache, adds entries with validity in ms, checks existence, and verifies expiration.
Pass milliseconds: 5000 for 5 seconds.
Use const { TimeCache } = require('time-cache');No dependency data recorded yet.