Pretty much as described in the issue; flattens Cachex.count/2 into Cachex.size/2. The default behaviour of Cachex.size/2 is unchanged, but you can now provide expired: false to make it act like the previous Cachex.count/2.
The default for Cachex.size/2 remains the same for compatibility, but it's also far cheaper and generally (I think) more intuitive anyway.
This fixes #376.
Pretty much as described in the issue; flattens
Cachex.count/2
intoCachex.size/2
. The default behaviour ofCachex.size/2
is unchanged, but you can now provideexpired: false
to make it act like the previousCachex.count/2
.The default for
Cachex.size/2
remains the same for compatibility, but it's also far cheaper and generally (I think) more intuitive anyway.