Documentation ¶
Index ¶
Constants ¶
View Source
const ( Get = iota Bget Gat Set Add Replace Touch Delete )
Variables ¶
View Source
var ( ErrKeyNotFound = errors.New("Key not found") ErrKeyExists = errors.New("Key exists") ErrValTooLarge = errors.New("Value too large") ErrInvalidArgs = errors.New("Invalid arguments") ErrItemNotStored = errors.New("Item not stored") ErrIncDecInval = errors.New("Incr/Decr on non-numeric value.") ErrVBucket = errors.New("The vbucket belongs to another server") ErrAuth = errors.New("Authentication error") ErrAuthCont = errors.New("Authentication continue") ErrUnknownCmd = errors.New("Unknown command") ErrNoMem = errors.New("Out of memory") ErrNotSupported = errors.New("Not supported") ErrInternal = errors.New("Internal error") ErrBusy = errors.New("Busy") ErrTemp = errors.New("Temporary failure") )
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.