cachex breaking changes
cachex 4.0.0 (September 30, 2024) is its newest release with breaking changes, 21 of them. The first: cachex 4.0.0 requires Elixir 1.7 or later. Every breaking API change we have recorded in cachex on Hex: 21 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.1.1, released June 30, 2025. MIT license. Source repository
Its 4.0.0 release requires Elixir 1.7 or later. Elixir end of life dates.
cachex 4.0.0 breaking changes
- Removed
Elixir versions below 1.7 are no longer supported; upgrade Elixir before using this release. github.com - Removed
:fallback
Pass the fallback function to Cachex.fetch/4 instead of the cache start option. github.com - Removed
:limit
Add a Cachex.Limit.Scheduled hook in the hooks option instead of using limit. github.com - Removed
:nodes
Configure nodes through a router, such as Cachex.Router.Jump, instead of the nodes option. github.com - Removed
:stats
Add Cachex.Stats as a hook in the hooks option instead of using stats. github.com - Removed
Cachex.count.2
Use Cachex.size/2 with the expired option instead of Cachex.count/2. github.com - Removed
Cachex.Warmer.interval.0
Set the interval field in the warmer record instead of defining interval/0. github.com - Removed
ExecutionError
Match on Cachex.Error in place of ExecutionError. github.com - Removed
set_many.3
Use Cachex.put_many/3 instead of set_many/3. github.com - Removed
set.4
Use Cachex.put/4 instead of set/4. github.com - Renamed
:async
Use the required field in a warmer record instead of async, which is roughly its inverse. github.com - Renamed
:batch_size
Use the buffer option in place of batch_size for stream and related functions. github.com - Renamed
:initial
Use the default option in place of initial for incr and decr. github.com - Renamed
:transactional
Use the transactions option in place of transactional. github.com - Renamed
:ttl
Use the expire option in place of ttl in put and related functions. github.com - Renamed
Cachex.dump.2
Call Cachex.save/3 in place of Cachex.dump/2. github.com - Renamed
Cachex.load.2
Call Cachex.restore/3 in place of Cachex.load/2. github.com - Behavior changed
Code matching cache record tuples directly must switch to entry(entry, :field) accessors. github.com - Behavior changed
Cachex.fetch.4
A three-element commit tuple from the fallback now returns a two-element tuple. github.com - Behavior changed
Cachex.restore.3
Code expecting true from restore must now handle a count of restored documents. github.com - Signature changed
Cachex.fetch.4
The function parameter of fetch is now required rather than optional. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.