redisstack

package
v0.0.0-...-aea5cd1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArgs

func AddArgs(key string, item string) []any

func AddResult

func AddResult(val any) (bool, error)

func ExistsArgs

func ExistsArgs(key string, item string) []any

func ExistsResult

func ExistsResult(val any) (bool, error)

func InfoArgs

func InfoArgs(key string) []any

func InsertArgs

func InsertArgs(key string, option *Option, noCreate bool, items []string) []any

func InsertResult

func InsertResult(val any) ([]bool, error)

func LoadChunkArgs

func LoadChunkArgs(key string, iter int64, data string) []any

func MAddArgs

func MAddArgs(key string, items []string) []any

func MAddResult

func MAddResult(val any) ([]bool, error)

func MExistsArgs

func MExistsArgs(key string, items []string) []any

func MExistsResult

func MExistsResult(val any) ([]bool, error)

func ReserveArgs

func ReserveArgs(key string, option *Option) []any

func ScanDumpArgs

func ScanDumpArgs(key string, iter int64) []any

Types

type Info

type Info struct {
	Capacity      int64
	Size          int64
	NumFilters    int64
	NumItems      int64
	ExpansionRate int64
}

func InfoResult

func InfoResult(val any) (*Info, error)

type Option

type Option struct {
	ErrorRate     *float64
	Capacity      *int64
	ExpansionRate *int64
	NonScaling    bool
}

type ScanDump

type ScanDump struct {
	Iter int64
	Data string
}

func DumpBatch

func DumpBatch(ctx context.Context, red *redis.Client, key string) ([]*ScanDump, error)

func ScanDumpResult

func ScanDumpResult(val any) (*ScanDump, error)

Jump to

Keyboard shortcuts

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