whitfin / cachex

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

Cache imports should return the number of imported records #366

Closed whitfin closed 2 months ago

whitfin commented 2 months ago

The current import returns {:ok, true}. We can do better than this and return the number of imported records. This also applies to cache loading, which uses import under the hood.