bluele / gcache

An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC
MIT License
2.6k stars 271 forks source link

Size unit #62

Closed dollarkillerx closed 3 years ago

dollarkillerx commented 5 years ago

Sir, what is the unit of size? c.items = make(map[interface{}]*lfuItem, c.size+1)

zaddok commented 5 years ago

???

TracyBin commented 3 years ago

If I understand correctly, this is a basic question. Specify the size of the map when creating the map.