top_k

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArgs

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

func AddResult

func AddResult(val any) ([]*string, error)

func CountArgs

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

func CountResult

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

func IncrByArgs

func IncrByArgs(key string, itemAmounts []redisstack.ItemAmount) []any

func IncrByResult

func IncrByResult(val any) ([]*string, error)

func InfoArgs

func InfoArgs(key string) []any

func ListArgs

func ListArgs(key string) []any

func ListResult

func ListResult(val any) ([]string, error)

func ListWithCountArgs

func ListWithCountArgs(key string) []any

func ListWithCountResult

func ListWithCountResult(val any) ([]redisstack.ItemAmount, error)

func QueryArgs

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

func QueryResult

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

func ReserveArgs

func ReserveArgs(key string, topK int64, info *Info) []any

Types

type Info

type Info struct {
	K     int64
	Width int64
	Depth int64
	Decay float64
}

func InfoResult

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

Jump to

Keyboard shortcuts

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