Versions in this module Expand all Collapse all v1 v1.0.0 Oct 30, 2015 Changes in this version + const StatusAuthContinue + const StatusAuthRequired + const StatusAuthUnknown + const StatusInvalidArgs + const StatusKeyExists + const StatusNetworkError + const StatusNonNumeric + const StatusNotFound + const StatusOK + const StatusOutOfMemory + const StatusUnknownCommand + const StatusUnknownError + const StatusValueNotStored + const StatusValueTooLarge + var ErrAuthContinue = &Error + var ErrAuthRequired = &Error + var ErrInvalidArgs = &Error + var ErrKeyExists = &Error + var ErrNonNumeric = &Error + var ErrNotFound = &Error + var ErrOutOfMemory = &Error + var ErrUnknownCommand = &Error + var ErrUnknownError = &Error + var ErrValueNotStored = &Error + var ErrValueTooLarge = &Error + type Conn struct + func Dial(nett, addr string) (*Conn, error) + func NewConnection(conn io.ReadWriteCloser) *Conn + func (cn *Conn) Add(key, val string, flags, exp uint32) (cas uint64, err error) + func (cn *Conn) Append(key, val string, ocas uint64) (cas uint64, err error) + func (cn *Conn) Auth(user, pass string) error + func (cn *Conn) Close() error + func (cn *Conn) Decr(key string, delta, init uint64, exp uint32, ocas uint64) (n, cas uint64, err error) + func (cn *Conn) Del(key string) (err error) + func (cn *Conn) DelCAS(key string, cas uint64) (err error) + func (cn *Conn) Flush(when uint32) (err error) + func (cn *Conn) GAT(key string, exp uint32) (val string, flags uint32, cas uint64, err error) + func (cn *Conn) Get(key string) (val string, flags uint32, cas uint64, err error) + func (cn *Conn) Incr(key string, delta, init uint64, exp uint32, ocas uint64) (n, cas uint64, err error) + func (cn *Conn) NoOp() (err error) + func (cn *Conn) Prepend(key, val string, ocas uint64) (cas uint64, err error) + func (cn *Conn) Quit() (err error) + func (cn *Conn) Replace(key, val string, flags, exp uint32, ocas uint64) (cas uint64, err error) + func (cn *Conn) Set(key, val string, flags, exp uint32, ocas uint64) (cas uint64, err error) + func (cn *Conn) Stats() (stats map[string]string, err error) + func (cn *Conn) StatsReset() (err error) + func (cn *Conn) StatsWithKey(key string) (stats map[string]string, err error) + func (cn *Conn) Touch(key string, exp uint32) (cas uint64, err error) + func (cn *Conn) Version() (ver string, err error) + type Error struct + Message string + Status uint16 + WrappedError error + func (err Error) Error() string Incompatible versions in this module v2.0.1+incompatible Jul 30, 2018 v2.0.0+incompatible Jun 12, 2018 Other modules containing this package github.com/alimy/mc/v2