redis

package
v0.0.0-...-bfc6946 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 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 Conn

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

func New

func New(ctx context.Context, addr string, password string) *Conn

func (*Conn) Del

func (rc *Conn) Del(key string) error

func (*Conn) Get

func (rc *Conn) Get(key string) (string, error)

func (*Conn) LLen

func (rc *Conn) LLen(key string) (int64, error)

func (*Conn) LRange

func (rc *Conn) LRange(key string, start, stop int64) ([]string, error)

func (*Conn) Ping

func (rc *Conn) Ping() (string, error)

func (*Conn) Set

func (rc *Conn) Set(key string, value interface{}) error

func (*Conn) SetAndExpire

func (rc *Conn) SetAndExpire(key string, value interface{}, expire time.Duration) error

type Field

type Field struct {
	Field string `json:"field"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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