Documentation ¶
Index ¶
Constants ¶
View Source
const ( Get = iota Bget Gat Set Add Replace Touch Delete )
Variables ¶
Functions ¶
Types ¶
type Prot ¶
type Prot interface { // Yes, the abstraction is a little bit leaky, but the code // in other places benefits from the consistency. Set(rw *bufio.ReadWriter, key []byte, value []byte) error Add(rw *bufio.ReadWriter, key []byte, value []byte) error Replace(rw *bufio.ReadWriter, key []byte, value []byte) error Get(rw *bufio.ReadWriter, key []byte) ([]byte, error) GetWithOpaque(rw *bufio.ReadWriter, key []byte, opaque int) ([]byte, error) GAT(rw *bufio.ReadWriter, key []byte) ([]byte, error) BatchGet(rw *bufio.ReadWriter, keys [][]byte) ([][]byte, error) Delete(rw *bufio.ReadWriter, key []byte) error Touch(rw *bufio.ReadWriter, key []byte) error }
Click to show internal directories.
Click to hide internal directories.