memcached

package
v0.0.0-...-fa9a36a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(parent context.Context, BPC bool) context.Context

Types

type CacheManager

type CacheManager struct {
	BPC bool
	// contains filtered or unexported fields
}

func FromContext

func FromContext(ctx context.Context) *CacheManager

func NewMemcached

func NewMemcached(BPC bool) *CacheManager

func (*CacheManager) Get

func (c *CacheManager) Get(key string, value interface{}) (bool, error)

func (*CacheManager) GetSet

func (c *CacheManager) GetSet(key string, value interface{}, getValue func() (interface{}, error), TTL time.Duration) error

func (*CacheManager) Set

func (c *CacheManager) Set(key string, value interface{}, TTL time.Duration) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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