Closed thanpolas closed 8 years ago
This is a problem with the code not the documentation. It appears that I'm not assigning the callback when only 3 arguments are passed.
It seems I spoke too soon. Because both are functions and both accept they same number of arguments, I can't determine which is which. I'll updates the docs.
I created a branch to try to fix the issue you listed above both by adjusting the code and by adding documentation. Please have a look at the diff and let me know what you think.
yup, that's what should be done for this case... Let's continue this discussion on jpodwys/cache-service#19
.set()
fixed and readme updated in 1.3.6
.
As per the docs:
expiration
andrefresh
are optional, so effectively one could write:However that is not the case as the callback will never be invoked.