Del removes the given cache entry.
(key string)
| 96 | |
| 97 | // Del removes the given cache entry. |
| 98 | func (c *Cache) Del(key string) { |
| 99 | if *c == nil { |
| 100 | return |
| 101 | } |
| 102 | |
| 103 | delete(*c, key) |
| 104 | } |
| 105 | |
| 106 | // Clear clears all the entries in the cache. |
| 107 | func (c *Cache) Clear() { |
no outgoing calls