mirror of
https://github.com/mailgun/groupcache.git
synced 2024-10-02 21:02:08 +00:00
commit
02826c3e79
@ -146,13 +146,13 @@ type Group struct {
|
|||||||
cacheBytes int64 // limit for sum of mainCache and hotCache size
|
cacheBytes int64 // limit for sum of mainCache and hotCache size
|
||||||
|
|
||||||
// mainCache is a cache of the keys for which this process
|
// mainCache is a cache of the keys for which this process
|
||||||
// (amongst its peers) is authorative. That is, this cache
|
// (amongst its peers) is authoritative. That is, this cache
|
||||||
// contains keys which consistent hash on to this process's
|
// contains keys which consistent hash on to this process's
|
||||||
// peer number.
|
// peer number.
|
||||||
mainCache cache
|
mainCache cache
|
||||||
|
|
||||||
// hotCache contains keys/values for which this peer is not
|
// hotCache contains keys/values for which this peer is not
|
||||||
// authorative (otherwise they would be in mainCache), but
|
// authoritative (otherwise they would be in mainCache), but
|
||||||
// are popular enough to warrant mirroring in this process to
|
// are popular enough to warrant mirroring in this process to
|
||||||
// avoid going over the network to fetch from a peer. Having
|
// avoid going over the network to fetch from a peer. Having
|
||||||
// a hotCache avoids network hotspotting, where a peer's
|
// a hotCache avoids network hotspotting, where a peer's
|
||||||
|
Loading…
Reference in New Issue
Block a user