| 15 | } |
| 16 | |
| 17 | type MemoryCache struct { |
| 18 | cache map[interface{}]*item |
| 19 | sync.RWMutex |
| 20 | } |
| 21 | |
| 22 | // NewMemoryCache uses map to store key:value data in-memory. |
| 23 | func NewMemoryCache() *MemoryCache { |
nothing calls this directly
no outgoing calls
no test coverage detected