redisbloomfilter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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 WithCapacity(capacity uint64) Option

func WithClientName

func WithClientName(name string) Option

func WithErrorRate

func WithErrorRate(rate float64) Option

Jump to

Keyboard shortcuts

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