redis

package
v0.0.0-...-e7f7999 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResponseMaxBytes = 1 * 1024 * 1024

Functions

This section is empty.

Types

type Client

type Client struct {
	OnFdCount func()
	OnError   func(resh.Error)
	Timeout   time.Duration
	PoolSize  int
	// contains filtered or unexported fields
}

func NewClient

func NewClient(auth string, addr string) (*Client, error)

func (*Client) ActiveCount

func (s *Client) ActiveCount() int

func (*Client) Close

func (d *Client) Close()

func (*Client) Exec

func (d *Client) Exec(cmdArgs []any, cb func(*Reader, error))

func (*Client) IdleCount

func (s *Client) IdleCount() int

func (*Client) String

func (d *Client) String() string

type Conn

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

type Reader

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

func (*Reader) Array

func (r *Reader) Array() *Reader

func (*Reader) Bytes

func (r *Reader) Bytes() []byte

func (*Reader) Int64

func (r *Reader) Int64() int64

func (*Reader) Next

func (r *Reader) Next() any

func (*Reader) Raw

func (r *Reader) Raw() []byte

func (*Reader) Str

func (r *Reader) Str() string

func (*Reader) String

func (r *Reader) String() string

Jump to

Keyboard shortcuts

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