redis

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: BSD-3-Clause Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	Get(ctx context.Context, name string) (string, error)
	Set(ctx context.Context, name string, value string) (bool, error)
	SetNX(ctx context.Context, name string, value string, expiry time.Duration) (bool, error)
	Eval(ctx context.Context, script *Script, keysAndArgs ...interface{}) (interface{}, error)
	PTTL(ctx context.Context, name string) (time.Duration, error)
	Close() error
}

type Pool

type Pool interface {
	Get() Conn
}

A Pool maintains a pool of Redis connections.

type Script

type Script struct {
	KeyCount int
	Src      string
	Hash     string
}

func NewScript

func NewScript(keyCount int, src string) *Script

Directories

Path Synopsis
v7
v8

Jump to

Keyboard shortcuts

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