urlcache
JSON →URL key-value cache for Node.js (>=0.10) that stores values keyed by URL strings or parsed URL objects. Version 0.7.0 is the latest release, supporting Node.js v9. It normalizes URLs by default to avoid duplicate keys, offers optional expiry times for cached values, and can strip URL hashes. Compared to simple Map-based caching, urlcache provides URL normalization and expiry out of the box. The API is minimal: get, set, clear, and length methods. Note that versions <0.7 require an Object.assign polyfill for Node <4, and the API has changed across releases (Promises removed in 0.5, .length added in 0.6).
Resources
packageurlcache ↗