NewUnorderedCache creates a new UnorderedCache backed by a hash map.
(config Config)
| 355 | |
| 356 | // NewUnorderedCache creates a new UnorderedCache backed by a hash map. |
| 357 | func NewUnorderedCache(config Config) *UnorderedCache { |
| 358 | mc := &UnorderedCache{ |
| 359 | baseCache: newBaseCache(config), |
| 360 | } |
| 361 | mc.baseCache.init(mc) |
| 362 | return mc |
| 363 | } |
| 364 | |
| 365 | // Implementation of cacheStore interface. |
| 366 | func (mc *UnorderedCache) init() { |
no test coverage detected
searching dependent graphs…