memcacheProvider

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Client     *memcache.Client
	Prefix     string
	Expiration int32
}

func New

func New(server ...string) *Provider

func (*Provider) Delete

func (provider *Provider) Delete(Id string) (err error)

func (*Provider) Get

func (provider *Provider) Get(Id string) (Value []byte, Exist bool, err error)

func (*Provider) Set

func (provider *Provider) Set(Id string, Value []byte) (err error)

Jump to

Keyboard shortcuts

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