diff --git a/packages/datastructure/lru_cache.go b/packages/datastructure/lru_cache.go index 3956eb1e1f8985878615a61adcbf5bbc975836bf..469e54a961fd78abab92d86a85d8b9d008741e9a 100644 --- a/packages/datastructure/lru_cache.go +++ b/packages/datastructure/lru_cache.go @@ -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