Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetterFunc ¶
本地获取数据函数
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) Get ¶
主要函数
获取缓存 策略:1,2,3 客户端访问-直接从本地缓存中取(本地缓存存在) -(本地缓存不存在)是否从远程节点获取-(是)从远程获取-返回缓存 -(否)回调函数getter,添加缓存-返回缓存
func (*Group) RegisterPeers ¶
Click to show internal directories.
Click to hide internal directories.