Documentation ¶
Index ¶
- Constants
- Variables
- type Conn
- func (cn *Conn) Auth(user, pass string) error
- func (cn *Conn) Close() error
- func (cn *Conn) Decr(key string, delta, init, exp int) (n, cas int, err error)
- func (cn *Conn) Del(key string) error
- func (cn *Conn) Get(key string) (val string, cas int, flags uint32, err error)
- func (cn *Conn) Incr(key string, delta, init, exp int) (n, cas int, err error)
- func (cn *Conn) Set(key, val string, ocas, flags, exp int) error
Constants ¶
View Source
const ( OpGet = uint8(iota) OpSet OpAdd OpReplace OpDelete OpIncrement OpDecrement OpQuit OpFlush OpGetQ OpNoop OpVersion OpGetK OpGetKQ OpAppend OpPrepend OpStat OpSetQ OpAddQ OpReplaceQ OpDeleteQ OpIncrementQ OpDecrementQ OpQuitQ OpFlushQ OpAppendQ OpPrependQ )
Ops
View Source
const ( OpAuthList = uint8(iota + 0x20) OpAuthStart OpAuthStep )
Auth Ops
Variables ¶
View Source
var ( ErrNotFound = errors.New("mc: not found") ErrKeyExists = errors.New("mc: key exists") ErrValueTooLarge = errors.New("mc: value to large") ErrInvalidArgs = errors.New("mc: invalid arguments") ErrValueNotStored = errors.New("mc: value not stored") ErrNonNumeric = errors.New("mc: incr/decr called on non-numeric value") ErrAuthRequired = errors.New("mc: authentication required") ErrUnknownCommand = errors.New("mc: unknown command") ErrOutOfMemory = errors.New("mc: out of memory") )
Errors
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.