mrredis

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnAdapter added in v0.3.1

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

func New

func New() *ConnAdapter

func (*ConnAdapter) Cli added in v0.3.1

func (c *ConnAdapter) Cli() redis.UniversalClient

func (*ConnAdapter) Close added in v0.3.1

func (c *ConnAdapter) Close() error

func (*ConnAdapter) Connect added in v0.3.1

func (c *ConnAdapter) Connect(ctx context.Context, opts Options) error

func (*ConnAdapter) Delete added in v0.3.1

func (c *ConnAdapter) Delete(ctx context.Context, key ...string) error

func (*ConnAdapter) GetStruct added in v0.3.1

func (c *ConnAdapter) GetStruct(ctx context.Context, key string, data any) error

func (*ConnAdapter) Ping added in v0.3.1

func (c *ConnAdapter) Ping(ctx context.Context) error

func (*ConnAdapter) SetStruct added in v0.3.1

func (c *ConnAdapter) SetStruct(ctx context.Context, key string, data any, expiration time.Duration) error

type Options

type Options struct {
	Host        string
	Port        string
	Password    string
	ConnTimeout time.Duration
}

Jump to

Keyboard shortcuts

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