hapijs / catbox

Multi-strategy object caching service
Other
494 stars 72 forks source link

callback for set optional #118

Closed TheBenji closed 9 years ago

TheBenji commented 9 years ago

Currently if you call "set()" without a callback it will just crash with undefined is not a function but I usual don't care wheather I set the cache. Is there are good reason to not make the callback mandatory?

hueniverse commented 9 years ago

I think it's better to set the callback to Hoek.ignore. This way you are explicit about not caring.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.