muesli / cache2go

Concurrency-safe Go caching library with expiration capabilities and access counters
Other
2.11k stars 518 forks source link

could not visit CacheItem.Data in AboutToExpireCallback #28

Open xiehuc opened 5 years ago

xiehuc commented 5 years ago

AboutToExipreCallback arg is key interface{}, if i try get value by table.Value(key)

because AboutToExipreCallback have table.Lock()

and table.Value() have table.RLock()

so, dead locked.