memcache

package
v0.0.0-...-8e4f697 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2013 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func Connect

func Connect(address string) (conn *Connection, err error)

func (*Connection) Add

func (mc *Connection) Add(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)

func (*Connection) Append

func (mc *Connection) Append(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)

func (*Connection) Cas

func (mc *Connection) Cas(key string, flags uint16, timeout uint64, value []byte, cas uint64) (stored bool, err error)

func (*Connection) Close

func (mc *Connection) Close()

func (*Connection) Delete

func (mc *Connection) Delete(key string) (deleted bool, err error)

func (*Connection) FlushAll

func (mc *Connection) FlushAll() (err error)

This purges the entire cache.

func (*Connection) Get

func (mc *Connection) Get(keys ...string) (results []Result, err error)

func (*Connection) Gets

func (mc *Connection) Gets(keys ...string) (results []Result, err error)

func (*Connection) IsClosed

func (mc *Connection) IsClosed() bool

func (*Connection) Prepend

func (mc *Connection) Prepend(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)

func (*Connection) Replace

func (mc *Connection) Replace(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)

func (*Connection) Set

func (mc *Connection) Set(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)

func (*Connection) Stats

func (mc *Connection) Stats(argument string) (result []byte, err error)

type MemcacheError

type MemcacheError struct {
	Message string
}

func NewMemcacheError

func NewMemcacheError(format string, args ...interface{}) MemcacheError

func (MemcacheError) Error

func (merr MemcacheError) Error() string

type Result

type Result struct {
	Key   string
	Value []byte
	Flags uint16
	Cas   uint64
}

Jump to

Keyboard shortcuts

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