redis

package
v0.0.0-...-c735510 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 3 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
}

Driver contains all the function needed to be recognized as a libdata driver

func NewClient

func NewClient(info *ClientInfo) (*Client, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, key string) ([]byte, error)

func (*Client) Invalidate

func (c *Client) Invalidate(ctx context.Context, key string) error

func (*Client) Set

func (c *Client) Set(ctx context.Context, key string, value []byte, expiration time.Duration) error

type ClientInfo

type ClientInfo struct {
	Addr     string
	Password string
	DB       int
}

Jump to

Keyboard shortcuts

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