问下啊,初始化的size参数单位是缓存个数还是容量啊
ayamzh opened this issue · comments
Ma Zheng commented
问下啊,初始化的size参数单位是缓存个数还是容量啊
行知 commented
Although we are both Chinese, we can hardly get answers to questions in Chinese
susnow commented
i have the same problem, what's means of the size when call gcache.New() func
file capacities or cache count?
if file capacities, which kind unit of it? b or kb or the others?
行知 commented
I recently read the source code. There is a linked list inside. This size represents the size of the linked list, which is the size of the key that can be cached.When the number of cached keys is greater than size, the eviction strategy is triggered
问下啊,初始化的size参数单位是缓存个数还是容量啊
panxf commented