Skip to content

v2.1.0

Compare
Choose a tag to compare
@mgnsk mgnsk released this 20 Feb 11:56
· 185 commits to master since this release
41d7a21
  • Implement func (c *Cache) CompareAndEvict(key, old interface{}) bool. It becomes useful when there's an error while using a value and it needs to be evicted but meanwhile the cache may already hold a new value for key. CompareAndEvict makes sure that with multiple concurrent evicters only the old value is evicted.