Documentation ¶
Index ¶
- Constants
- type GroupCache
- func (gc *GroupCache) AddPeer(peer string, name string)
- func (gc *GroupCache) NewGroup(name string, cacheBytes int64, getter groupcache.Getter) (*groupcache.Group, error)
- func (gc *GroupCache) RemovePeer(peer string, name string)
- func (gc *GroupCache) Start(tlsConfig *tls.Config) error
- func (gc *GroupCache) Stop(ctx context.Context) error
Constants ¶
View Source
const (
// 64 MiB cache size by default
DefaultCacheSize = 1024 * 1024 * 64
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupCache ¶
type GroupCache struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(self string, options *groupcache.HTTPPoolOptions) *GroupCache
func (*GroupCache) AddPeer ¶
func (gc *GroupCache) AddPeer(peer string, name string)
func (*GroupCache) NewGroup ¶
func (gc *GroupCache) NewGroup(name string, cacheBytes int64, getter groupcache.Getter) (*groupcache.Group, error)
func (*GroupCache) RemovePeer ¶
func (gc *GroupCache) RemovePeer(peer string, name string)
Click to show internal directories.
Click to hide internal directories.