Documentation ¶
Index ¶
- type HMDto
- type RedisClient
- func (c *RedisClient) Del(key ...string) (int, error)
- func (c *RedisClient) Get(key string) (string, error)
- func (c *RedisClient) GetPool() *redis.Pool
- func (c *RedisClient) HDel(key string, fields ...interface{}) (int, error)
- func (c *RedisClient) HMGet(key string, fields ...interface{}) (map[string]string, error)
- func (c *RedisClient) HMGetOne(key string, field string) (string, error)
- func (c *RedisClient) HMSet(key string, fields ...HMDto) (bool, error)
- func (c *RedisClient) SAdd(key string, member ...interface{}) (int, error)
- func (c *RedisClient) SMembers(key string) ([]string, error)
- func (c *RedisClient) SRem(key string, member ...interface{}) (int, error)
- func (c *RedisClient) SetEx(key string, value string, ttl int) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct { MaxIdle int MaxActive int Network string Address string Password string Db int Username string ReadTimeout time.Duration WriteTimeout time.Duration IdleTimeout time.Duration // contains filtered or unexported fields }
func (*RedisClient) GetPool ¶
func (c *RedisClient) GetPool() *redis.Pool
func (*RedisClient) HDel ¶
func (c *RedisClient) HDel(key string, fields ...interface{}) (int, error)
func (*RedisClient) HMGet ¶
func (c *RedisClient) HMGet(key string, fields ...interface{}) (map[string]string, error)
func (*RedisClient) HMGetOne ¶
func (c *RedisClient) HMGetOne(key string, field string) (string, error)
func (*RedisClient) SAdd ¶
func (c *RedisClient) SAdd(key string, member ...interface{}) (int, error)
Click to show internal directories.
Click to hide internal directories.