Documentation ¶
Overview ¶
package godis implements a db client for Redis.
Index ¶
Constants ¶
View Source
const IOBUFLEN = 1024
Variables ¶
View Source
var ( ErrFullBuf = errors.New("Full buffer") ErrNotFound = errors.New("Not found") )
View Source
var ConnSum = 0
View Source
var (
ErrProtocol = errors.New("godis: protocol error")
)
View Source
var MaxConnections = 50
Functions ¶
This section is empty.
Types ¶
type AsyncClient ¶
type AsyncClient struct { *Client // contains filtered or unexported fields }
func NewAsyncClient ¶
func NewAsyncClient(addr string) *AsyncClient
func (*AsyncClient) Call ¶
func (ac *AsyncClient) Call(args ...interface{}) (err error)
func (*AsyncClient) Close ¶
func (ac *AsyncClient) Close()
func (*AsyncClient) Poll ¶
func (ac *AsyncClient) Poll() (*Reply, error)
type Client ¶
func (*Client) AsyncClient ¶
func (c *Client) AsyncClient() *AsyncClient
func (*Client) Connect ¶
func (c *Client) Connect() (conn Connection, err error)
pop a connection from pool
type Connection ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.