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 AddNXArgs

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

func AddNXResult

func AddNXResult(val any) (bool, error)

func CountArgs

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

func CountResult

func CountResult(val any) (int64, error)

func DelArgs

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

func DelResult

func DelResult(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, capacity *int64, noCreate bool, items []string) []any

func InsertNXArgs

func InsertNXArgs(key string, capacity *int64, noCreate bool, items []string) []any

func InsertNXResult

func InsertNXResult(val any) ([]int64, error)

func LoadChunkArgs

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

func MExistsArgs

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

func MExistsResult

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

func ReserveArgs

func ReserveArgs(key string, capacity int64, bucketSize *int64, maxIterations *int64, expansionRate *int64) []any

func ScanDumpArgs

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

Types

type Info

type Info struct {
	Size             int64
	NumBuckets       int64
	NumFilters       int64
	NumItemsInserted int64
	NumItemsDeleted  int64
	BucketSize       int64
	ExpansionRate    int64
	MaxIteration     int64
}

func InfoResult

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

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