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
Any problems with the above? With reference to function below:
func (b *bucket) Set(k, v []byte, h uint64) {
setCalls := atomic.AddUint64(&b.setCalls, 1)
if setCalls%(1<<14) == 0 {
b.Clean()
}
if len(k) >= (1<<16) || len(v) >= (1<<16) {
// Too big key or value - its length cannot be encoded
// with 2 bytes (see below). Skip the entry.
return
}
The text was updated successfully, but these errors were encountered:
Values stored with SetBig must be read with GetBig. They cannot be read with Get. See docs for details.
So stick to SetBig / GetBig if you are unsure if value sizes may exceed 64KB. These functions work with smaller values too.
Why not add SetBig here,
Because I don't know if my cache value will exceed 64kb so I'll do :
Any problems with the above? With reference to function below:
The text was updated successfully, but these errors were encountered: