init initializes the baseCache with the provided cacheStore. It must be called with a non-nil cacheStore before use of the cache.
(store cacheStore)
| 194 | // init initializes the baseCache with the provided cacheStore. It must be |
| 195 | // called with a non-nil cacheStore before use of the cache. |
| 196 | func (bc *baseCache) init(store cacheStore) { |
| 197 | bc.ll.init() |
| 198 | bc.store = store |
| 199 | bc.store.init() |
| 200 | } |
| 201 | |
| 202 | // Add adds a value to the cache. |
| 203 | func (bc *baseCache) Add(key, value interface{}) { |