cache

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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)

func (*GroupCache) Start

func (gc *GroupCache) Start(tlsConfig *tls.Config) error

func (*GroupCache) Stop

func (gc *GroupCache) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL