muesli / cache2go

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

CacheTable.Add() should not use “defer table.unlock ” #53

Open KR-Yuan opened 3 years ago

KR-Yuan commented 3 years ago

CacheTable.Add() function ,must not use "defer table.Unlock()" because addInternal() func will unlock table, that will make duplicate deletion exception