Documentation
¶
Index ¶
- Variables
- func DoInLock(key string, timeout time.Duration, fun func() interface{}) interface{}
- func GetClient(name string) *redis.Client
- func GetDefaultClient() *redis.Client
- func GetObj(key string, obj interface{}) (bool, error)
- func Init()
- func SetObj(key string, obj interface{}, expiration time.Duration) error
- func TryLock(key string, timeout time.Duration) string
- func Unlock(key string, version string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Ctx = context.Background()
Functions ¶
func GetDefaultClient ¶
func GetDefaultClient() *redis.Client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.