Documentation
¶
Index ¶
- Variables
- type Client
- type Option
- func WithDialTimeout(dialTimeout time.Duration) Option
- func WithLogger(logger *zap.Logger) Option
- func WithMaxRetries(maxRetries int) Option
- func WithMetrics(r metrics.Registerer) Option
- func WithMinIdleConns(minIdleConns int) Option
- func WithPassword(password string) Option
- func WithPoolSize(poolSize int) Option
- func WithPoolTimeout(poolTimeout time.Duration) Option
- func WithServerName(serverName string) Option
- type PipeClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNil = goredis.Nil ErrInvalidType = errors.New("redis: invalid type") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Close() error Check(context.Context) health.Status Stats() redis.PoolStats Scan(cursor uint64, key string, count int64) (uint64, []string, error) Get(key string) ([]byte, error) GetMulti(keys []string) ([]interface{}, error) Set(key string, val interface{}, expiration time.Duration) error PFAdd(key string, els ...string) (int64, error) PFCount(keys ...string) (int64, error) PFMerge(dest string, keys ...string) error IncrByFloat(key string, value float64) (float64, error) Del(key string) error Incr(key string) (int64, error) Pipeline() PipeClient Expire(key string, expiration time.Duration) (bool, error) }
type Option ¶
type Option func(*options)
func WithDialTimeout ¶
func WithLogger ¶
func WithMaxRetries ¶
func WithMetrics ¶
func WithMetrics(r metrics.Registerer) Option
func WithMinIdleConns ¶
func WithPassword ¶
func WithPoolSize ¶
func WithPoolTimeout ¶
func WithServerName ¶
type PipeClient ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.