Documentation
¶
Index ¶
- func GetService() core.IService
- func OnInit(s core.IService, opt ...Option) (err error)
- type Option
- type Options
- type RMutexOption
- type RMutexOptions
- type RedisFactory
- type RedisMutex
- type RedisPool
- func (this *RedisPool) ContainsKey(_Key string) bool
- func (this *RedisPool) ContainsKey_Map(_Key string, _FieldKey string) bool
- func (this *RedisPool) CustomFunc(f func(pool redis.Conn))
- func (this *RedisPool) DelKey_MapKey(_Key string, _FieldKey string)
- func (this *RedisPool) Delete(_Key string)
- func (this *RedisPool) GetKey_List(_Key string, _Vakue_type reflect.Type) (Value []interface{})
- func (this *RedisPool) GetKey_Map(_Key string, _Vakue_type reflect.Type) (Value map[string]interface{})
- func (this *RedisPool) GetKey_MapByKey(key string, fieldkey string, value interface{}) (err error)
- func (this *RedisPool) GetKey_MapByKeys(_Key string) (keys []string, err error)
- func (this *RedisPool) GetKey_MapByLen(_Key string) (count int, err error)
- func (this *RedisPool) GetKey_MapByValues(_Key string, _Vakue_type reflect.Type) (Values []interface{})
- func (this *RedisPool) GetKey_Value(_Key string, _Value interface{}) (err error)
- func (this *RedisPool) Lock(_Key string, outTime int) (err error)
- func (this *RedisPool) SetExKey_Map(_Key string, _Value map[string]interface{})
- func (this *RedisPool) SetExKey_Value(_Key string, _Value interface{}, expire int)
- func (this *RedisPool) SetKey_List(_Key string, _Value []interface{})
- func (this *RedisPool) SetKey_Map(_Key string, _Value map[string]interface{})
- func (this *RedisPool) SetKey_Value(_Key string, _Value interface{})
- func (this *RedisPool) UnLock(_Key string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetService ¶
Types ¶
type RMutexOption ¶
type RMutexOption func(*RMutexOptions)
func SetExpiry ¶
func SetExpiry(v int) RMutexOption
func Setdelay ¶
func Setdelay(v time.Duration) RMutexOption
type RMutexOptions ¶
type RMutexOptions struct {
// contains filtered or unexported fields
}
type RedisFactory ¶
type RedisFactory struct {
// contains filtered or unexported fields
}
func (RedisFactory) CloseAllPool ¶
func (this RedisFactory) CloseAllPool()
func (RedisFactory) GetPool ¶
func (this RedisFactory) GetPool(url string) *RedisPool
type RedisMutex ¶
type RedisMutex struct {
// contains filtered or unexported fields
}
func NewRedisMutex ¶
func NewRedisMutex(key string, opt ...RMutexOption) *RedisMutex
func (*RedisMutex) Unlock ¶
func (this *RedisMutex) Unlock()
type RedisPool ¶
func NewRedisPool ¶
func (*RedisPool) ContainsKey_Map ¶
判断键是否存在 Map中
func (*RedisPool) DelKey_MapKey ¶
删除键值 哈希表 字段
func (*RedisPool) GetKey_List ¶
读取键值列表
func (*RedisPool) GetKey_Map ¶
func (this *RedisPool) GetKey_Map(_Key string, _Vakue_type reflect.Type) (Value map[string]interface{})
读取键值 哈希表
func (*RedisPool) GetKey_MapByKey ¶
读取键值 哈希表_key 值
func (*RedisPool) GetKey_MapByKeys ¶
func (*RedisPool) GetKey_MapByLen ¶
func (*RedisPool) GetKey_MapByValues ¶
func (*RedisPool) GetKey_Value ¶
添加键值对
func (*RedisPool) SetExKey_Map ¶
添加键值 哈希表
func (*RedisPool) SetExKey_Value ¶
添加过期键值对
func (*RedisPool) SetKey_List ¶
添加键值列表
func (*RedisPool) SetKey_Map ¶
添加键值 哈希表
func (*RedisPool) SetKey_Value ¶
添加键值对
Click to show internal directories.
Click to hide internal directories.