Can getValue use RLock?
Cyufei87 opened this issue · comments
chen zhaohui commented
Line 123 in ecee3be
can here use RLock to decrease lock race?
jrynd commented
sort of...getValue()
checks if the item has expired, and deletes it if it has. So you'd have to convert the reader lock to a full lock.
jrynd commented
Also the cache engine supports a loaderFunc
that will attempt to generate a value if it's not found in the cache. That would also require a real Lock.