redisbloomhelper

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyValue = errors.New("empty value")

ErrEmptyValue 返回值为空值

View Source
var ErrItemLenNotMatch = errors.New("item len not match")

ErrItemLenNotMatch 物品数量不符

View Source
var ErrItemListEmpty = errors.New("item list is empty")

ErrItemListEmpty 物品列表为空

View Source
var ErrMustChooseOneParam = errors.New("must choose one param")

ErrMustChooseOneParam 必须选一个参数填入

View Source
var ErrNeedMoreThan2Source = errors.New("need more than 2 source")

ErrNeedMoreThan2Source 需要超过2个资源

View Source
var ErrResultLenNotMatch = errors.New("results len not match")

ErrResultLenNotMatch 结果返回数量不符

Functions

This section is empty.

Types

type BoolMapPlacehold

type BoolMapPlacehold struct {
	Ck      string
	Cmd     *redis.Cmd
	Items   []string
	Reverse bool
}

BoolMapPlacehold 将结果中的1设置为true,0设置为false;如果Reverse为true则相反

func (*BoolMapPlacehold) Result

func (r *BoolMapPlacehold) Result() (map[string]bool, error)

type BoolValPlacehold

type BoolValPlacehold struct {
	Ck      string
	Cmd     *redis.Cmd
	Reverse bool
}

BoolValPlacehold 将结果中的1设置为true,0设置为false;如果Reverse为true则相反

func (*BoolValPlacehold) Result

func (r *BoolValPlacehold) Result() (bool, error)

type IncrItem

type IncrItem struct {
	Item      string `json:"Item"`
	Increment int64  `json:"Increment"`
}

type Int64MapPlacehold

type Int64MapPlacehold struct {
	Ck    string
	Cmd   *redis.Cmd
	Items []string
}

Int64MapPlacehold int64结果和对应物品映射结果的占位符

func (*Int64MapPlacehold) Result

func (r *Int64MapPlacehold) Result() (map[string]int64, error)

type Int64ValPlacehold

type Int64ValPlacehold struct {
	Ck  string
	Cmd *redis.Cmd
}

Int64ValPlacehold int64型的结果占位符

func (*Int64ValPlacehold) Result

func (r *Int64ValPlacehold) Result() (int64, error)

type OneBoolMapPlacehold

type OneBoolMapPlacehold struct {
	MapPlacehold *BoolMapPlacehold
	Item         string
}

OneBoolMapPlacehold bool结果和对应物品映射结果但只取其中一个值的占位符

func (*OneBoolMapPlacehold) Result

func (r *OneBoolMapPlacehold) Result() (bool, error)

type OneInt64MapPlacehold

type OneInt64MapPlacehold struct {
	MapPlacehold *Int64MapPlacehold
	Item         string
}

OneInt64MapPlacehold int64结果和对应物品映射结果但只取其中一个值的占位符

func (*OneInt64MapPlacehold) Result

func (r *OneInt64MapPlacehold) Result() (int64, error)

type StringListValPlacehold

type StringListValPlacehold struct {
	Ck  string
	Cmd *redis.Cmd
}

StringListValPlacehold []string型的结果占位符

func (*StringListValPlacehold) Result

func (r *StringListValPlacehold) Result() ([]string, error)

Directories

Path Synopsis
redisbloomhelper redis扩展[RedisBloom](https://github.com/RedisBloom/RedisBloom)帮助模块,用于处理布隆过滤器
redisbloomhelper redis扩展[RedisBloom](https://github.com/RedisBloom/RedisBloom)帮助模块,用于处理布隆过滤器
cuckoofilter redis扩展[RedisBloom](https://github.com/RedisBloom/RedisBloom)帮助模块,用于处理布隆过滤器
cuckoofilter redis扩展[RedisBloom](https://github.com/RedisBloom/RedisBloom)帮助模块,用于处理布隆过滤器

Jump to

Keyboard shortcuts

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