hapijs / catbox

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

what if cache driver takes too long or hangs and never calls the callback. #157

Closed koldkoder closed 7 years ago

koldkoder commented 8 years ago

i am seeing a potential problem where my cache driver hangs, so catbox never executes callback and all subsequent Id hangs, because catbox enqueues the callbacks for same id in an array. I was thinking if the cache timeouts could be handled in a better way by providing 'cacheTimeout', where in catbox would resort to calling generatefunc if the cache does not return within the cachetimeout.

koldkoder commented 8 years ago

Here is the pull request addressing the issue https://github.com/hapijs/catbox/pull/158

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.