Documentation
¶
Index ¶
- type Redis
- func (r *Redis) Get(ctx context.Context, key string) ([]byte, error)
- func (r *Redis) Ping(ctx context.Context) error
- func (r *Redis) Set(ctx context.Context, key string, a any) error
- func (r *Redis) SetMulti(ctx context.Context, a map[string]any) error
- func (r *Redis) SetMultiWithTTL(ctx context.Context, timeout time.Duration, a map[string]any) error
- func (r *Redis) SetWithTTL(ctx context.Context, timeout time.Duration, key string, a any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func New ¶
func New(configRedis config.RedisConfig) *Redis
func (*Redis) SetMultiWithTTL ¶
Click to show internal directories.
Click to hide internal directories.