Documentation
¶
Index ¶
- func Decrement(ctx context.Context, key string, decrement int64) (int64, error)
- func Flush(ctx context.Context) error
- func Forever(ctx context.Context, key string, value interface{}) error
- func Forget(ctx context.Context, key string) error
- func Get(ctx context.Context, key string) (string, error)
- func GetRedisClient() *redis.Client
- func Increment(ctx context.Context, key string, increment int64) (int64, error)
- func InitRedisClient(redisConfig config.Redis) error
- func Pull(ctx context.Context, key string) (string, error)
- func Remember(ctx context.Context, key string, duration time.Duration, ...) ([]byte, error)
- func RememberForever(ctx context.Context, key string, fetchFunc func() ([]byte, error)) ([]byte, error)
- func Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrement ¶
Decrement decreases the integer value of a key by the given decrement. If the key does not exist, it is set to 0 before performing the operation.
func GetRedisClient ¶
func GetRedisClient() *redis.Client
func Increment ¶
Increment increases the integer value of a key by the given increment. If the key does not exist, it is set to 0 before performing the operation.
func InitRedisClient ¶
func RememberForever ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.