muesli / cache2go

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

expirationCheck optimization ,use lazy and timeAfter check , just like redis key expired policy #37

Open liulanghai opened 5 years ago

liulanghai commented 5 years ago

now expirationCheck will Iter hole map,it will cost more cpu