redis

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nil = goredis.Nil

Nil is returned by Redis operations when a key/member does not exist.

Functions

func RegisterHook

func RegisterHook(factory func(opt *Options) Hook)

RegisterHook registers a hook factory that will be attached to every client created via NewClient.

Types

type Client

type Client = goredis.Client

Client is Nimbus's Redis client type.

func NewClient

func NewClient(opt *Options) *Client

NewClient creates a Redis client.

type Hook

type Hook = goredis.Hook

Hook lets callers observe Redis commands (via go-redis hooks).

type Options

type Options = goredis.Options

Options configures Redis client initialization.

func ParseURL

func ParseURL(url string) (*Options, error)

ParseURL parses a redis:// URL into client options.

type Pipeliner added in v1.9.1

type Pipeliner = goredis.Pipeliner

Pipeliner batches commands (see Client.Pipelined / TxPipelined).

type PubSub

type PubSub = goredis.PubSub

PubSub is a Redis Pub/Sub subscription handle.

type Script added in v1.9.1

type Script = goredis.Script

Script is a Lua script that is run with EVALSHA, falling back to EVAL.

func NewScript added in v1.9.1

func NewScript(src string) *Script

NewScript wraps Lua source for repeated, atomic execution.

type Z

type Z = goredis.Z

Z is a sorted-set member payload.

type ZRangeBy

type ZRangeBy = goredis.ZRangeBy

ZRangeBy represents score range bounds for sorted-set queries.

Jump to

Keyboard shortcuts

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