(key interface{})
| 413 | } |
| 414 | |
| 415 | func (cache *SyncLRUCache) Get(key interface{}) (value interface{}, ok bool) { |
| 416 | cache.rwm.Lock() |
| 417 | defer cache.rwm.Unlock() |
| 418 | return cache.LRUCache.Get(key) |
| 419 | } |
| 420 | |
| 421 | func (cache *SyncLRUCache) Put(key interface{}, value interface{}) { |
| 422 | cache.rwm.Lock() |