con_cache v0.13.0 Release Notes
Release Date: 2018-04-30 // about 6 years ago-
๐ฅ Breaking changes
- Requires Elixir 1.5 or newer
- ๐ The
ConCache.start_link
function takes only one argument. Previously, you needed to pass two keyword lists, which have now been unified in a single kw list. SeeConCache.start_link/1
for details. - ๐ The
ConCache.start_link
parameters:ttl_check
and:ttl
are renamed to:ttl_check_interval
and:global_ttl
. - The
:ttl_check_interval
parameter is now required. If you don't want expiry in your cache, you need to explicitly passttl_check_interval: false
. - If the
:ttl_check_interval
option is set to a positive integer, you also need to pass the:global_ttl
option. - ๐ง If a cache is configured for expiry, but you want some item to not expire, you need to pass the atom
:infinity
as its TTL value (previously, it was 0).
๐ Improvements
- Added
child_spec/1
. AConCache
child can now be specified as{ConCache, [name: :my_cache, ttl_check_interval: false]}
.