crache
crache copied to clipboard
Delay returned on cache lookup
I'm probably just missing something here, but why does lookup return a Delay? It's pretty frustrating to need to check delay? or force just for crache when other core.cache backends don't return Delays.
I'm afraid that this was an oversight on my part- the delay were at one time optional (so that you could ask for a lookup before you needed, potentially an optimization), but I did not intend to return delays exclusively. I think this was brought in by #7, which included several other changes that seem to work well. I'm a bit busy at the moment, but I would accept a PR to re-add the option for delays.
I fixed this in my fork: https://github.com/behrica/crache and merged as well 2 PRs: #15 #16
@strongh Do you want to include this changes in here ?