Set assigns the given value to a specific key.
(key string, val interface{})
| 87 | |
| 88 | // Set assigns the given value to a specific key. |
| 89 | func (c *Cache) Set(key string, val interface{}) { |
| 90 | if *c == nil { |
| 91 | *c = Cache{} |
| 92 | } |
| 93 | |
| 94 | (*c)[key] = val |
| 95 | } |
| 96 | |
| 97 | // Del removes the given cache entry. |
| 98 | func (c *Cache) Del(key string) { |
nothing calls this directly
no outgoing calls
no test coverage detected