cedis

package
v0.0.0-...-a7a8f6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cedis

type Cedis struct {
	// contains filtered or unexported fields
}

Cedis Elasticell redis client

func NewCedis

func NewCedis(opts ...Option) *Cedis

NewCedis create a elasticell client

func (*Cedis) Get

func (c *Cedis) Get() redis.Conn

Get returns a redis connection

type Option

type Option func(*options)

Option Elasticell redis client option

func WithCellProxies

func WithCellProxies(value ...string) Option

WithCellProxies set elasticell proxy address

func WithDailTimeout

func WithDailTimeout(value time.Duration) Option

WithDailTimeout set dail timeout for connection

func WithIdleTimeout

func WithIdleTimeout(value time.Duration) Option

WithIdleTimeout set max idle conn per elasticell proxy

func WithMaxActive

func WithMaxActive(value int) Option

WithMaxActive set max active conn per elasticell proxy

func WithMaxIdle

func WithMaxIdle(value int) Option

WithMaxIdle set max idle conn per elasticell proxy

func WithReadTimeout

func WithReadTimeout(value time.Duration) Option

WithReadTimeout set read timeout for connection

func WithWriteTimeout

func WithWriteTimeout(value time.Duration) Option

WithWriteTimeout set write timeout for connection

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL