Versions in this module Expand all Collapse all v1 v1.0.0 Mar 11, 2026 Changes in this version + var RedisClient *redis.Client + func InitRedis(addr, password string) error + type RedisCache struct + func NewRedisHandle(ctx context.Context, client *redis.Client) *RedisCache + func (r *RedisCache) Delete(key string) error + func (r *RedisCache) Get(key string) ([]byte, error) + func (r *RedisCache) Set(key string, val []byte) error + func (r *RedisCache) SetDefaultExp(exp time.Duration) + func (r *RedisCache) SetE(key string, value []byte, exp time.Duration) error