cache

package
v0.0.0-...-d78474a Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

type Cacher interface {
	Set(key string, value []byte, expireTime int) error
	Get(key string) ([]byte, error)
	Ping() error
}

type Memcache

type Memcache struct {
	// contains filtered or unexported fields
}

func NewMemcache

func NewMemcache(servers []string) *Memcache

func (*Memcache) Get

func (m *Memcache) Get(key string) ([]byte, error)

func (*Memcache) Ping

func (m *Memcache) Ping() error

func (*Memcache) Set

func (m *Memcache) Set(key string, value []byte, expireTime int) error

Jump to

Keyboard shortcuts

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