Documentation ¶
Index ¶
- Variables
- func C() *redis.Client
- func Close() (err error)
- func ComposeKey(rawkey string) string
- func ComposeKeys(keys ...string) string
- func Del(ctx context.Context, key string) error
- func ErrorWrapper(err error) error
- func GetBool(ctx context.Context, key string) (bool, error)
- func GetBytes(ctx context.Context, key string) ([]byte, error)
- func GetFloat64(ctx context.Context, key string) (float64, error)
- func GetInt(ctx context.Context, key string) (int, error)
- func GetInt64(ctx context.Context, key string) (int64, error)
- func GetObject(ctx context.Context, key string, value interface{}) error
- func GetString(ctx context.Context, key string) (string, error)
- func Init(ctx context.Context, appName string, c *datastruct.RedisConf) error
- func PTTL(ctx context.Context, key string) (time.Duration, error)
- func SetBool(ctx context.Context, key string, b bool, expire time.Duration) error
- func SetBytes(ctx context.Context, key string, value []byte, expire time.Duration) error
- func SetFloat64(ctx context.Context, key string, value float64, expire time.Duration) error
- func SetInt(ctx context.Context, key string, value int, expire time.Duration) error
- func SetInt64(ctx context.Context, key string, value int64, expire time.Duration) error
- func SetObject(ctx context.Context, key string, value interface{}, expire time.Duration) error
- func SetString(ctx context.Context, key string, value string, expire time.Duration) error
- func TTL(ctx context.Context, key string) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func PTTL ¶
PTTL milliseconds resolution - The command returns -1 if the key exists but has no associated expire. - The command returns -2 if the key does not exist.
func SetFloat64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.