Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Auth(auth string) bool
- func (c *Client) Close()
- func (c *Client) Conn() *Client
- func (c *Client) DB() int
- func (c *Client) Exec(command string, args ...string) interface{}
- func (c *Client) ExecQuery(query *Query)
- func (c *Client) HostInfo() string
- func (c *Client) Info() string
- func (c *Client) Ping() string
- func (c *Client) SelectDB(db int) *DB
- type Config
- type Conn
- type DB
- type Query
- type RedisPool
Constants ¶
View Source
const ( // GET is get command. usage: GET key GET = "GET" // SET is set command. usage: SET key value SET = "SET" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is Redis conn.
func (*Client) Close ¶
func (c *Client) Close()
Close is a function that close connection to redis server.
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is redis connection config.
type Conn ¶
type Conn interface { Auth(auth string) bool Conn() *Client DB() int ExecQuery(query *Query) Exec(command string, args ...string) interface{} SelectDB(db int) *DB Info() string HostInfo() string Ping() string Close() }
Conn is interface
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query is struct.
func (*Query) FormatCommand ¶
FormatCommand is a function
Click to show internal directories.
Click to hide internal directories.