return data instead of pair

add-license-1 0.0.2
Basit Ali 2022-03-29 22:09:32 +05:00
parent 61563b35d8
commit de2865c97f
1 changed files with 1 additions and 1 deletions

2
get.go
View File

@ -9,5 +9,5 @@ func (cache *myCache) Get(key string) (interface{}, error) {
return nil, ErrKeyNotFound
}
return item, nil
return item.data, nil
}