Documentation ¶
Index ¶
- Constants
- type BinProt
- func (b BinProt) Add(rw *bufio.ReadWriter, key, value []byte) error
- func (b BinProt) Append(rw *bufio.ReadWriter, key, value []byte) error
- func (b BinProt) BatchGet(rw *bufio.ReadWriter, keys [][]byte) ([][]byte, error)
- func (b BinProt) Delete(rw *bufio.ReadWriter, key []byte) error
- func (b BinProt) GAT(rw *bufio.ReadWriter, key []byte) ([]byte, error)
- func (b BinProt) Get(rw *bufio.ReadWriter, key []byte) ([]byte, error)
- func (b BinProt) GetE(rw *bufio.ReadWriter, key []byte) ([]byte, uint32, uint32, error)
- func (b BinProt) GetWithOpaque(rw *bufio.ReadWriter, key []byte, opaque int) ([]byte, error)
- func (b BinProt) Prepend(rw *bufio.ReadWriter, key, value []byte) error
- func (b BinProt) Replace(rw *bufio.ReadWriter, key, value []byte) error
- func (b BinProt) Set(rw *bufio.ReadWriter, key, value []byte) error
- func (b BinProt) SetE(rw *bufio.ReadWriter, key, value []byte, expiration uint32) error
- func (b BinProt) Touch(rw *bufio.ReadWriter, key []byte) error
- type ErrOpaqueMismatch
Constants ¶
View Source
const ( Get = 0x00 Set = 0x01 Add = 0x02 Replace = 0x03 Delete = 0x04 Increment = 0x05 Decrement = 0x06 Quit = 0x07 Flush = 0x08 GetQ = 0x09 Noop = 0x0a Version = 0x0b GetK = 0x0c GetKQ = 0x0d Append = 0x0e Prepend = 0x0f Stat = 0x10 SetQ = 0x11 AddQ = 0x12 ReplaceQ = 0x13 DeleteQ = 0x14 IncrementQ = 0x15 DecrementQ = 0x16 QuitQ = 0x17 FlushQ = 0x18 AppendQ = 0x19 PrependQ = 0x1a Verbosity = 0x1b Touch = 0x1c GAT = 0x1d GATQ = 0x1e GetE = 0x40 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinProt ¶
type BinProt struct{}
func (BinProt) GetWithOpaque ¶
type ErrOpaqueMismatch ¶
type ErrOpaqueMismatch struct {
// contains filtered or unexported fields
}
func (ErrOpaqueMismatch) Error ¶
func (e ErrOpaqueMismatch) Error() string
Click to show internal directories.
Click to hide internal directories.