This PR will replace Cachex.dump/3 and Cachex.load/3 with Cachex.save/3 and Cachex.restore/3. At the same time all internals have been rewritten to provide a more memory efficient implementation when possible, with a focus on streaming. The Cachex.export/2 function has also been modified to use Cachex.stream/3. Due to all of these changes, Cachex.Disk has also been completely removed.
Compression has been removed as an option, instead using Elixir's GZIP compression directly. The :trusted option has been renamed to :trust, even though I imagine people aren't setting this directly.
This PR also fixes a couple of bugs inside option parsing as well as streams.
This fixes #365.
This PR will replace
Cachex.dump/3
andCachex.load/3
withCachex.save/3
andCachex.restore/3
. At the same time all internals have been rewritten to provide a more memory efficient implementation when possible, with a focus on streaming. TheCachex.export/2
function has also been modified to useCachex.stream/3
. Due to all of these changes,Cachex.Disk
has also been completely removed.Compression has been removed as an option, instead using Elixir's GZIP compression directly. The
:trusted
option has been renamed to:trust
, even though I imagine people aren't setting this directly.This PR also fixes a couple of bugs inside option parsing as well as streams.