gcache

package
v0.0.0-...-f5ca578 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PeerListener

func PeerListener(pool *groupcache.HTTPPool, selfAddr string, c discov.EtcdConf)

func Serve

func Serve(pool *groupcache.HTTPPool, listenOn string) http.Server

func ToKey

func ToKey(params ...interface{}) string

Types

type Cache

type Cache interface {
	NewGroup(groupName string, cacheBytesSize int64, getter groupcache.GetterFunc) *groupcache.Group
	DestroyGroup(groupName string)
	Get(ctx context.Context, groupName, key string) ([]byte, error)
	Delete(ctx context.Context, groupName, key string)
}

func NewGCache

func NewGCache() Cache

Jump to

Keyboard shortcuts

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