Documentation ¶
Index ¶
- Constants
- Variables
- func Add(name string, option Option)
- func AddMap(name string, setting map[string]interface{})
- func AddMapBatch(batch map[string]interface{})
- func Cluster(name string) *redis.ClusterClient
- func Lock(name string, expire time.Duration) bool
- func Sentinel(name string) *redis.Client
- func Unlock(name string)
- func Use(name string) *redis.Client
- type MaxMin
- type Option
Constants ¶
View Source
const ( KeyBase = "general:" //基础 KeyLock = KeyBase + "lock:" //锁 )
Variables ¶
View Source
var ( Default *redis.Client Ctx = context.Background() Nil = redis.Nil )
Functions ¶
func AddMapBatch ¶
func AddMapBatch(batch map[string]interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.