client

package
v0.0.0-...-6438891 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a pipeline mode redis client

func MakeClient

func MakeClient(addr string) (*Client, error)

MakeClient creates a new client

func (*Client) Close

func (client *Client) Close()

Close stops asynchronous goroutines and close connection

func (*Client) Send

func (client *Client) Send(args [][]byte) reply.Reply

Send sends a request to redis server

func (*Client) Start

func (client *Client) Start()

Start starts asynchronous goroutines

type ConnectionFactory

type ConnectionFactory struct {
	Peer string
}

func (*ConnectionFactory) ActivateObject

func (f *ConnectionFactory) ActivateObject(ctx context.Context, object *pool.PooledObject) error

func (*ConnectionFactory) DestroyObject

func (f *ConnectionFactory) DestroyObject(ctx context.Context, object *pool.PooledObject) error

func (*ConnectionFactory) MakeObject

func (f *ConnectionFactory) MakeObject(ctx context.Context) (*pool.PooledObject, error)

func (*ConnectionFactory) PassivateObject

func (f *ConnectionFactory) PassivateObject(ctx context.Context, object *pool.PooledObject) error

func (*ConnectionFactory) ValidateObject

func (f *ConnectionFactory) ValidateObject(ctx context.Context, object *pool.PooledObject) bool

Jump to

Keyboard shortcuts

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