Delete removes the key
(key string)
| 163 | |
| 164 | // Delete removes the key |
| 165 | func (c *BigCache) Delete(key string) error { |
| 166 | hashedKey := c.hash.Sum64(key) |
| 167 | shard := c.getShard(hashedKey) |
| 168 | return shard.del(hashedKey) |
| 169 | } |
| 170 | |
| 171 | // Reset empties all cache shards |
| 172 | func (c *BigCache) Reset() error { |