Skip to content
Snippets Groups Projects
Commit 39aa4917 authored by muXxer's avatar muXxer
Browse files

Fixes wrong value in EvictionCallback

parent 83fcadf2
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,7 @@ func (cache *LRUCache) Delete(key interface{}) bool {
keyMutex.Unlock()
if cache.options.EvictionCallback != nil {
cache.options.EvictionCallback(key, entry.GetValue().(*lruCacheElement).key)
cache.options.EvictionCallback(key, entry.GetValue().(*lruCacheElement).value)
}
return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment