Chore: sync necessary changes from premium

This commit is contained in:
Dreamacro
2020-09-21 22:22:07 +08:00
parent 10f9571c9e
commit 8766287e72
3 changed files with 8 additions and 9 deletions

View File

@ -188,7 +188,7 @@ func (c *LruCache) get(key interface{}) *entry {
}
// Delete removes the value associated with a key.
func (c *LruCache) Delete(key string) {
func (c *LruCache) Delete(key interface{}) {
c.mu.Lock()
if le, ok := c.cache[key]; ok {