A simple in-memory cache written in Typescript with automatic cache invalidation and an elegant syntax.
MIT License
Full Changelog: https://github.com/grischaerbe/cacheables/compare/v1.2.2...v2.0.0
Published by grischaerbe almost 3 years ago
Published by grischaerbe about 3 years ago
Published by grischaerbe about 3 years ago
Full Changelog: https://github.com/grischaerbe/cacheables/compare/v1.1.0...v1.1.1
Published by grischaerbe about 3 years ago
cache-only
or max-age
.misses
became unstable and hard to maintain with different cache policies, I dismissed it. Please update your application if it's is depending on the logs of misses. (hits
are still a thingβ¦). It might get a new chance at some point though.Published by grischaerbe over 3 years ago
Published by grischaerbe over 3 years ago
Published by grischaerbe over 3 years ago
cache.isCached(key)
returns whether a cacheable is present and valid (i.e., did not time out)setTimeout
, therefore less memory leak potential, no cleanup necessaryPublished by grischaerbe over 3 years ago
Published by grischaerbe over 3 years ago
Published by grischaerbe over 3 years ago
Published by grischaerbe over 3 years ago
Published by grischaerbe over 3 years ago
Published by grischaerbe over 3 years ago
Published by grischaerbe over 3 years ago