Documentation ¶
Index ¶
- func Decr(key string) error
- func GetFloat32(key string) (float32, error)
- func GetFloat64(key string) (float64, error)
- func GetInt(key string) (int, error)
- func GetInt64(key string) (int64, error)
- func GetObj(key string, value interface{}) error
- func GetString(key string) string
- func HealthCheck() error
- func Incr(key string) error
- func Init(app *iris.Application)
- func Lock(ctx context.Context, key string, ttl time.Duration) *redislock.Lock
- func LockMax(ctx context.Context, key string) *redislock.Lock
- func PutObj(key string, val interface{}, expiration time.Duration)
- func PutObjPermanently(key string, val interface{})
- func Set(key string, value interface{}, expiration time.Duration)
- func SetPermanently(key string, value interface{})
- func TryLock(ctx context.Context, key string, tryTime, ttl time.Duration) *redislock.Lock
- func UnLock(ctx context.Context, lock *redislock.Lock)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloat32 ¶
func GetFloat64 ¶
func HealthCheck ¶
func HealthCheck() error
func PutObjPermanently ¶
func PutObjPermanently(key string, val interface{})
func SetPermanently ¶
func SetPermanently(key string, value interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.