问下啊,初始化的size参数单位是缓存个数还是容量啊
问下啊,初始化的size参数单位是缓存个数还是容量啊
Although we are both Chinese, we can hardly get answers to questions in Chinese
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?
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参数单位是缓存个数还是容量啊
缓存个数!
