Documentation ¶
Index ¶
- Constants
- func Get(groupName, key string) ([]byte, error)
- func MakeCanServeGroupcache(fun func(addr string, h fasthttp.RequestHandler)) func(addr string, h fasthttp.RequestHandler)
- func RegisterGetter(groupName string, cacheSize int64, groupGetter groupcache.GetterFunc)
- func RegisterPeers(me string, others []string)
- func UpdatePeers(ps []string)
Constants ¶
View Source
const GroupcacheBasePath = "/_groupcache/"
Variables ¶
This section is empty.
Functions ¶
func MakeCanServeGroupcache ¶
func MakeCanServeGroupcache(fun func(addr string, h fasthttp.RequestHandler)) func(addr string, h fasthttp.RequestHandler)
func RegisterGetter ¶
func RegisterGetter(groupName string, cacheSize int64, groupGetter groupcache.GetterFunc)
func RegisterPeers ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.