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

Cache imports should return the number of imported records #366

Closed whitfin closed 1 month ago

whitfin commented 1 month 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.