Versions in this module Expand all Collapse all v1 v1.4.0 Apr 19, 2026 Changes in this version + const BinHeaderLen + const MagicRequest + const MagicResponse + const MaxValueLen + const OpAdd + const OpAppend + const OpDecrement + const OpDelete + const OpFlush + const OpGAT + const OpGATQ + const OpGet + const OpGetK + const OpGetKQ + const OpGetQ + const OpIncrement + const OpNoop + const OpPrepend + const OpQuit + const OpReplace + const OpSet + const OpStat + const OpTouch + const OpVersion + const StatusInvalidArgs + const StatusItemNotStored + const StatusKeyExists + const StatusKeyNotFound + const StatusNonNumeric + const StatusOK + const StatusOutOfMemory + const StatusUnknownCommand + const StatusValueTooLarge + var ErrIncomplete = errors.New("celeris-memcached-protocol: incomplete frame") + var ErrProtocol = errors.New("celeris-memcached-protocol: protocol error") + type BinaryHeader struct + BodyLen uint32 + CAS uint64 + DataType uint8 + ExtrasLen uint8 + KeyLen uint16 + Magic byte + Opaque uint32 + Opcode byte + VBucketOrSt uint16 + type BinaryPacket struct + Extras []byte + Header BinaryHeader + Key []byte + Value []byte + func (p *BinaryPacket) Status() uint16 + type BinaryReader struct + func NewBinaryReader() *BinaryReader + func (r *BinaryReader) Compact() + func (r *BinaryReader) Feed(data []byte) + func (r *BinaryReader) Next() (BinaryPacket, error) + func (r *BinaryReader) Reset() + type BinaryWriter struct + func NewBinaryWriter() *BinaryWriter + func (w *BinaryWriter) AppendArith(opcode byte, key string, delta, initial uint64, exptime uint32, opaque uint32) []byte + func (w *BinaryWriter) AppendConcat(opcode byte, key string, value []byte, cas uint64, opaque uint32) []byte + func (w *BinaryWriter) AppendDelete(key string, cas uint64, opaque uint32) []byte + func (w *BinaryWriter) AppendFlush(exptime uint32, opaque uint32) []byte + func (w *BinaryWriter) AppendGAT(opcode byte, key string, exptime uint32, opaque uint32) []byte + func (w *BinaryWriter) AppendGet(opcode byte, key string, opaque uint32) []byte + func (w *BinaryWriter) AppendRequest(opcode byte, extras, key, value []byte, cas uint64, opaque uint32) []byte + func (w *BinaryWriter) AppendSimple(opcode byte, opaque uint32) []byte + func (w *BinaryWriter) AppendStats(arg string, opaque uint32) []byte + func (w *BinaryWriter) AppendStorage(opcode byte, key string, value []byte, flags uint32, exptime uint32, ...) []byte + func (w *BinaryWriter) AppendTouch(key string, exptime uint32, opaque uint32) []byte + func (w *BinaryWriter) Bytes() []byte + func (w *BinaryWriter) Reset() + type Kind uint8 + const KindClientError + const KindDeleted + const KindEnd + const KindError + const KindExists + const KindNotFound + const KindNotStored + const KindNumber + const KindOK + const KindServerError + const KindStat + const KindStored + const KindTouched + const KindValue + const KindVersion + func (k Kind) String() string + type TextReader struct + func NewTextReader() *TextReader + func (r *TextReader) Compact() + func (r *TextReader) Feed(data []byte) + func (r *TextReader) Next() (TextReply, error) + func (r *TextReader) Reset() + type TextReply struct + CAS uint64 + Data []byte + Flags uint32 + Int uint64 + Key []byte + Kind Kind + type TextWriter struct + func NewTextWriter() *TextWriter + func (w *TextWriter) AppendArith(cmd, key string, delta uint64) []byte + func (w *TextWriter) AppendDelete(key string) []byte + func (w *TextWriter) AppendFlushAll(delay int64) []byte + func (w *TextWriter) AppendRetrieval(cmd string, keys ...string) []byte + func (w *TextWriter) AppendRetrievalTouch(cmd string, exptime int64, keys ...string) []byte + func (w *TextWriter) AppendSimple(cmd string) []byte + func (w *TextWriter) AppendStats(arg string) []byte + func (w *TextWriter) AppendStorage(cmd, key string, flags uint32, exptime int64, data []byte, casID uint64, ...) []byte + func (w *TextWriter) AppendTouch(key string, exptime int64) []byte + func (w *TextWriter) Bytes() []byte + func (w *TextWriter) Reset()