Layercache 2.0.0: Millisecond TTLs, Stale-Preserving Expiration, and Better Redis Coverage

typescript dev.to

Layercache 2.0.0 is out. This release is intentionally a major version because it changes the public TTL semantics from seconds to milliseconds. That is a breaking change, but it also makes Layercache much more consistent with Node.js timers, Redis PX / PTTL, and most JavaScript runtime APIs. What changed? Breaking: TTL values are now milliseconds Before 2.0.0, TTL examples and parts of the public API used seconds. In 2.0.0, TTL-related values are consistently millisecon

Read Full Tutorial open_in_new
arrow_back Back to Tutorials