Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClientClosed = errors.New("memc: client has been closed")
)
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func New ¶
func New(instances []string, idle int) *Collection
func (*Collection) Close ¶
func (c *Collection) Close() error
func (*Collection) Return ¶
func (c *Collection) Return(key string, conn *Buffer)
type Connection ¶
type Connection interface { // Read reads data from the connection. Read(b []byte) (n int, err error) // Write writes data to the connection. Write(b []byte) (n int, err error) // Close closes the connection. Close() error }
A Connection represents an underlying TCP/Unix socket connection to a single memcached instance.
It may be reused in future requests.
Click to show internal directories.
Click to hide internal directories.