Versions in this module Expand all Collapse all v1 v1.0.0 May 15, 2024 Changes in this version + type DataSet struct + Key string + Value any + type Options struct + DB int + Exp int + URI string + type Redis struct + func NewRedis(opt *Options) (*Redis, error) + func NewRedisSentinel(opt *SentinelOptions) (*Redis, error) + func (r *Redis) Del(ctx context.Context, key ...string) error + func (r *Redis) DeleteWithPattern(ctx context.Context, pattern string) error + func (r *Redis) Exists(ctx context.Context, key ...string) bool + func (r *Redis) GetInt(ctx context.Context, key string) (int, error) + func (r *Redis) GetMembers(ctx context.Context, key string, obj interface{}, opts ...*options.Options) (int, error) + func (r *Redis) GetObject(ctx context.Context, key string, value interface{}, opts ...*options.Options) error + func (r *Redis) GetString(ctx context.Context, key string) (string, error) + func (r *Redis) MGet(ctx context.Context, keys []string, obj interface{}, opts ...*options.Options) error + func (r *Redis) RemainingTime(ctx context.Context, key string) int + func (r *Redis) Set(ctx context.Context, key string, value interface{}, opts ...*options.Options) error + func (r *Redis) SetMember(ctx context.Context, key string, data []*DataSet, opts ...*options.Options) error + func (r *Redis) SetMultiple(ctx context.Context, data []*DataSet, opts ...*options.Options) error + type SentinelOptions struct + DB int + Exp int + URI string