Add adds a value to the cache.
(key, value interface{})
| 201 | |
| 202 | // Add adds a value to the cache. |
| 203 | func (bc *baseCache) Add(key, value interface{}) { |
| 204 | bc.add(key, value, nil, nil) |
| 205 | } |
| 206 | |
| 207 | // AddEntry adds a value to the cache. It provides an alternative interface to |
| 208 | // Add which the caller can use to reduce allocations by bundling the Entry |