memcache

package
v0.0.0-...-d41676d Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPrefix = "GOSESSION-"

Variables

This section is empty.

Functions

func NewDefaultManager

func NewDefaultManager(servers ...string) *session.Manager

Types

type Store

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

func NewDefaultStore

func NewDefaultStore(servers ...string) *Store

func NewStore

func NewStore(prefix string, servers ...string) *Store

func (*Store) Delete

func (s *Store) Delete(key string) error

func (*Store) Get

func (s *Store) Get(key string) ([]byte, error)

func (*Store) Set

func (s *Store) Set(key string, value []byte, ttl time.Duration) error

Jump to

Keyboard shortcuts

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