Documentation ¶ Index ¶ type Redis func NewRedis(addr, username, password string) *Redis func (r *Redis) Close() error func (r *Redis) Get(ctx context.Context, key string) (string, error) func (r *Redis) Set(ctx context.Context, key string, value any, expiration time.Duration) 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 NewRedis ¶ func NewRedis(addr, username, password string) *Redis func (*Redis) Close ¶ func (r *Redis) Close() error func (*Redis) Get ¶ func (r *Redis) Get(ctx context.Context, key string) (string, error) func (*Redis) Set ¶ func (r *Redis) Set(ctx context.Context, key string, value any, expiration time.Duration) error Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.