whitfin / cachex

A powerful caching library for Elixir with support for transactions, fallbacks and expirations
https://hexdocs.pm/cachex/
MIT License
1.6k stars 103 forks source link

Rename Cache entry components to be clearer #359

Closed whitfin closed 1 month ago

whitfin commented 2 months ago

Right now the entry is in the shape {:key, :touched, :ttl, :value}. Ideally this would be changed going forward to something like this: {:key, :value, :modified, :expiration}.

The name renaming makes more sense, and we should also update :ttl options to :expiration too. This is a breaking change, of course.