Documentation ¶
Index ¶
- type Redis
- func (r *Redis) Close() error
- func (r *Redis) Do(command string, args ...interface{}) (interface{}, error)
- func (r *Redis) Expire(key string, lifeCycleSecond uint) (int, error)
- func (r *Redis) HDel(key, field string) (int, error)
- func (r *Redis) HGet(key, field string) (string, error)
- func (r *Redis) HGetAll(key string) (map[string]string, error)
- func (r *Redis) HIncrBy(key, field string, value int) (int, error)
- func (r *Redis) HKeys(key string) ([]string, error)
- func (r *Redis) HSet(key, field, value string) (int, error)
- func (r *Redis) HVals(key string) ([]string, error)
- func (r *Redis) LPush(key string, value string) (int, error)
- func (r *Redis) LRange(key string, start, stop int) ([]string, error)
- func (r *Redis) LTrim(key string, start, stop int) (string, error)
- func (r *Redis) Ping() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func New ¶
func New(host, password string, database, maxIdle, maxActive, maxConnTimeoutSecond, maxIdleTimeoutMinute uint) (*Redis, error)
New 连接单个Redis
Click to show internal directories.
Click to hide internal directories.