matthiasmullie / scrapbook

PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APC(u), SQL and additional capabilities (e.g. transactions, stampede protection) built on top.
https://www.scrapbook.cash
MIT License
315 stars 27 forks source link

Fix lingering stampede causing unnecessary wait #55

Closed amne closed 9 months ago

amne commented 9 months ago

When using stampede protection feature If the first request protects a key with key.stampede but also resolve the value faster than the SLA then the next request will read both key and key.stampede and wait one attempt.

matthiasmullie commented 9 months ago

Released in https://github.com/matthiasmullie/scrapbook/releases/tag/1.5.2