goredis

package
v0.0.0-...-b71bc5b Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 4 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 Redis 客户端.

func NewClient

func NewClient(network, address, password string, opts ...store.ClientOption) *Client

func (*Client) Eval

func (c *Client) Eval(ctx context.Context, src string, keys []string, args []interface{}) (interface{}, error)

Eval 支持使用 lua 脚本.

func (*Client) SAdd

func (c *Client) SAdd(ctx context.Context, key, val string) (int, error)

Jump to

Keyboard shortcuts

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