Replaced delete with CacheStore.Delete inside Read to be lock safe fixes #129

pull/130/head
Tufan Baris Yildirim 2019-01-29 10:05:37 +03:00
parent 98f26a62fc
commit 3db4f1b373
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func (s Storage) Get(key string) []byte {
item := s.items[key]
if item.Expired() {
delete(s.items, key)
CacheStorage.Delete(key)
return nil
}
return item.Content