Sargun Dhillon
df91803297
Add TrackingSet method
...
This method reduces the likelihood of a race condition where
you can add a (tracked) item to the cache, and the item isn't
the item you thought it was.
2020-08-13 10:43:38 -07:00
Alexej Kubarev
243f5c8219
Fixes #21 . Callong OnDelete during gc()
2018-11-25 15:31:09 -08:00
Anthony Romano
c69270ce08
layeredcache: add Stop() and fix races in tests
...
worker goroutine running concurrently with tests would cause data race errors
when running tests with -race enabled.
2017-02-13 15:39:24 -08:00
Jens Deppe
a451d7262c
Integrate feedback and upstream fixes
...
- Ensure correct locking in GetOrCreateSecondaryCache
- Fetch now returns a *Item
2016-11-01 23:53:22 -07:00
Jens Deppe
c1634a4d00
Add concept of a SecondaryCache which exposes the secondary part of a LayeredCache
2016-11-01 09:01:39 -07:00