Documentation
¶
Index ¶
- type Client
- func (c *Client) BFAdd(key, item string) int
- func (c *Client) BFCreate(key string, errorRate float64, capacity int) string
- func (c *Client) BFExists(key, item string) int
- func (c *Client) BFMAdd(key string, items ...string) []int
- func (c *Client) BFMExists(key string, items ...string) []int
- func (c *Client) SetClient(client *redis.Client)
- type RedisParamsArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client redis bloom client
func (*Client) BFAdd ¶
BFAdd Adds an item to the Bloom Filter, creating the filter if it does not yet exist.
func (*Client) BFCreate ¶
BFCreate Creates an empty Bloom Filter with a given desired error ratio and initial capacity.
func (*Client) BFMAdd ¶
BFMAdd Adds one or more items to the Bloom Filter, creating the filter if it does not yet exist. This command operates identically to BF.ADD except it allows multiple inputs and returns multiple values.
type RedisParamsArray ¶
type RedisParamsArray []string
RedisParamsArray .
func (RedisParamsArray) MarshalBinary ¶
func (s RedisParamsArray) MarshalBinary() ([]byte, error)
MarshalBinary implement encoding.BinaryMarshaler
func (RedisParamsArray) UnmarshalBinary ¶
func (s RedisParamsArray) UnmarshalBinary(data []byte) error
UnmarshalBinary implement encoding.BinaryUnmarshaler
Click to show internal directories.
Click to hide internal directories.