Documentation ¶
Index ¶
- type RedisMng
- func (mng *RedisMng) Get(key string) (string, error)
- func (mng *RedisMng) HDel(key_name string, fields ...string) (interface{}, error)
- func (mng *RedisMng) HExists(key_name, field_name string) (interface{}, error)
- func (mng *RedisMng) HGet(key_name, field string) (interface{}, error)
- func (mng *RedisMng) HIncrby(key_name, field_name, incr_by_number interface{}) (res interface{}, err error)
- func (mng *RedisMng) HKeys(key_name string) (interface{}, error)
- func (mng *RedisMng) HLen(key_name string) (res interface{}, err error)
- func (mng *RedisMng) HSet(key_name, field string, value interface{}) (interface{}, error)
- func (mng *RedisMng) Set(key string, value interface{}, expire int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisMng ¶
*
- @func:实例化一个redis连接池
- @author Hank
- @date 2019-02-24
func NewRedisMng ¶
func NewRedisMng() *RedisMng
*
- @func: NewRedisMng 返回一个redis管理器实例
- @author: Wiidz
- @date: 2020-04-15
func (*RedisMng) Get ¶
*
- @func: Get 读取指定键的值
- @author: Wiidz
- @date: 2020-04-15
- @Param: [key] 键名
- @return: [str] 键值
func (*RedisMng) HGet ¶
-------BEGIN------哈希相关的操作-----BEGIN-------- * * @func: HSGet 设置key * @author Hank * @date 2019-06-21
func (*RedisMng) HIncrby ¶
func (mng *RedisMng) HIncrby(key_name, field_name, incr_by_number interface{}) (res interface{}, err error)
/** * @func: HINCRBY 增加hash中的字段的值 返回的是字段被修改过后的值 * @author Hank * @date 2019-06-21 */
Click to show internal directories.
Click to hide internal directories.