ttlcache v2.0.0 Release Notes
Release Date: 2020-07-01 // over 3 years ago-
2.0.0 (July 2020)
๐ Fixes #29, #30, #31
Behavioural changes
- ๐
Remove(key)
now also calls the expiration callback when it's set Count()
returns zero when the cache is closed
API changes
SetLoaderFunction
allows you to provide a function to retrieve data on missing cache keys.- ๐ Operations that affect item behaviour such as
Close
,Set
,SetWithTTL
,Get
,Remove
,Purge
now return an error with standard errorsErrClosed
anErrNotFound
instead of a bool or nothing - ๐
SkipTTLExtensionOnHit
replacesSkipTtlExtensionOnHit
to satisfy golint - The callback types are now exported
- ๐