You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
each bucket limit the memory as 1/512 of total.
eg: I need 512MB cache, but each bucket only 1 MB.
if many keys goes to one bucket, many data will over write when chunks full.
I don't have any data to show this will happen.
but for logic, this will be better: don't limit bucket memory to 1/512 of total.
file fastcache.go, func (b *bucket) Set, line 335:
if chunkIdxNew >= uint64(len(b.chunks)) { // len(b.chunks) here could use all buckets used chunks count
I wish I said clear with Chinglish. :-)
thanks.
The text was updated successfully, but these errors were encountered:
each bucket limit the memory as 1/512 of total.
eg: I need 512MB cache, but each bucket only 1 MB.
if many keys goes to one bucket, many data will over write when chunks full.
I don't have any data to show this will happen.
but for logic, this will be better: don't limit bucket memory to 1/512 of total.
file fastcache.go,
func (b *bucket) Set
, line 335:I wish I said clear with Chinglish. :-)
thanks.
The text was updated successfully, but these errors were encountered: