Versions in this module Expand all Collapse all v0 v0.38.0 Jun 12, 2023 Changes in this version + type Cache interface + Get func(string) interface{} + GetAndLock func(string) interface{} + Len func() int + Put func(string, interface{}) bool + Unlock func(string) + func New(capacity int) Cache + type LRUCache struct + func (c *LRUCache) Get(key string) interface{} + func (c *LRUCache) GetAndLock(s string) interface{} + func (c *LRUCache) Len() int + func (c *LRUCache) Put(key string, value interface{}) bool + func (c *LRUCache) Unlock(s string) + type MockCache struct + func NewMockCache(t mockConstructorTestingTNewMockCache) *MockCache + func (_m *MockCache) Get(_a0 string) interface{} + func (_m *MockCache) GetAndLock(_a0 string) interface{} + func (_m *MockCache) Len() int + func (_m *MockCache) Put(_a0 string, _a1 interface{}) bool + func (_m *MockCache) Unlock(_a0 string)