iredis

package module
v0.0.0-...-e2f3dfd Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringSliceToFloat64Slice

func StringSliceToFloat64Slice(slice []string) []float64

func StringSliceToInt64Slice

func StringSliceToInt64Slice(slice []string) []int64

func StringSliceToUInt64Slice

func StringSliceToUInt64Slice(slice []string) []uint64

Types

type Option

type Option func(*Service)

func WithAuth

func WithAuth(auth string) Option

func WithConnection

func WithConnection(host string, port int) Option

func WithDB

func WithDB(db int) Option

func WithDialTimeout

func WithDialTimeout(timeout time.Duration) Option

func WithLimit

func WithLimit(minIdle, maxIdle int) Option

func WithReadTimeout

func WithReadTimeout(timeout time.Duration) Option

func WithWriteTimeout

func WithWriteTimeout(timeout time.Duration) Option

type Service

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

func New

func New(opts ...Option) *Service

func (*Service) GetConn

func (r *Service) GetConn() *redis.Client

func (*Service) Run

func (r *Service) Run() error

Jump to

Keyboard shortcuts

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