cluster

package
v0.0.0-...-e39d9f4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_SIZE = 16000

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(poolSize int, ip, port string) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) ConnectAll

func (c *Client) ConnectAll()

func (*Client) Get

func (c *Client) Get(k string) string

func (*Client) GetWithError

func (c *Client) GetWithError(k string) (string, error)

func (*Client) Info

func (c *Client) Info() string

func (*Client) PlaceBackInPool

func (c *Client) PlaceBackInPool(cc *ClientConnection)

func (*Client) SAdd

func (c *Client) SAdd(k, v string) error

func (*Client) SMembers

func (c *Client) SMembers(k string) string

func (*Client) SRem

func (c *Client) SRem(k, v string) error

func (*Client) Set

func (c *Client) Set(k, v string) error

func (*Client) TakeFromPool

func (c *Client) TakeFromPool() *ClientConnection

type ClientConnection

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

func (*ClientConnection) Connect

func (c *ClientConnection) Connect(target string) bool

func (*ClientConnection) Info

func (c *ClientConnection) Info() string

func (*ClientConnection) ReadAll

func (c *ClientConnection) ReadAll() ([]string, error)

func (*ClientConnection) ReadInfoAll

func (c *ClientConnection) ReadInfoAll() string

func (*ClientConnection) RunCommand

func (c *ClientConnection) RunCommand(command string) (string, bool, error)

func (*ClientConnection) TryCommand

func (c *ClientConnection) TryCommand(command string) error

func (*ClientConnection) TryCommandWithReply

func (c *ClientConnection) TryCommandWithReply(command string) string

func (*ClientConnection) TryCommandWithReplyAndError

func (c *ClientConnection) TryCommandWithReplyAndError(command string) (string, error)

Jump to

Keyboard shortcuts

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