Load loads from the cache the value that is mapped to key, or bool if the cache doesn't contain key.
(key interface{})
| 36 | // Load loads from the cache the value that is mapped to key, or bool if |
| 37 | // the cache doesn't contain key. |
| 38 | func (c *Cache) Load(key interface{}) (value interface{}, ok bool) { |
| 39 | return c.cache.Load(key) |
| 40 | } |
| 41 | |
| 42 | // clear must be called with lock already held! |
| 43 | func (c *Cache) clear() int64 { |