cached
and cachedmethod
improved
Now cachebox uses threading.Lock
for sync functions, and asyncio.Lock
for async functions to avoid cache stampede
. These changes fix #15 and #20 issues.
Thanks to
- @Benoss for the report
- @AlePiccin for the report and solution.