Documentation ¶
Index ¶
- func DelCache(ctx context.Context, key string) error
- func GetBytes(ctx context.Context, key string) (val []byte, err error)
- func GetCookie(ctx context.Context, key string) (val string, err error)
- func GetInt(ctx context.Context, key string) (val int, err error)
- func GetObject(ctx context.Context, key string) (val interface{}, err error)
- func GetString(ctx context.Context, key string) (val string, err error)
- func SetBytes(ctx context.Context, key string, val []byte, ttl int64) error
- func SetCookie(ctx context.Context, key string, val string, ttl int64) error
- func SetInt(ctx context.Context, key string, val int, ttl int64) error
- func SetObject(ctx context.Context, key string, val interface{}, ttl int64) error
- func SetString(ctx context.Context, key string, val string, ttl int64) error
- type RedisClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisClient ¶
func GetCacheClient ¶
func GetCacheClient() *RedisClient
func NewRedisClient ¶
func NewRedisClient(cfg *config.Config) *RedisClient
Click to show internal directories.
Click to hide internal directories.