mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 15:25:19 +00:00
use the right key for lookup in the lru
This commit is contained in:
2
pkg/cache/cache.go
vendored
2
pkg/cache/cache.go
vendored
@@ -76,7 +76,7 @@ func (c *cache) Get(key string, val interface{}) error {
|
|||||||
k := c.Key(key)
|
k := c.Key(key)
|
||||||
|
|
||||||
// try the LRU
|
// try the LRU
|
||||||
v, ok := c.LRU.Get(key)
|
v, ok := c.LRU.Get(k)
|
||||||
if ok {
|
if ok {
|
||||||
i := v.(*item)
|
i := v.(*item)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user