Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(name FilterName, pool *redis.Pool, opts ...Option) (*backend, error)
New takes a filter name, redis connection pool, some options and returns a configured bloomFilterBackend or an error. The redis server this client connects to must have the RedisBloom module installed. A filter name is required and must not be empty.
Types ¶
type FilterName ¶
type FilterName string
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithCapacity ¶
func WithClientName ¶
func WithErrorRate ¶
Click to show internal directories.
Click to hide internal directories.