Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitmapSet ¶
type BitmapSet interface { // Init init bitmap, m is number of bits in filter Init(m uint) error // Set each bit in bits, to 1 Set(bits []uint) error // Test whether bits is set. Test(bits []uint) (bool, error) // Close closes the connection. Close() }
BitmapSet interface
func NewMemoryBitmapSet ¶
func NewMemoryBitmapSet() BitmapSet
NewMemoryBitmapSet create bitmap base on memory
func NewRedisBitmapSet ¶
func NewRedisBitmapSet(c RedisConfig) BitmapSet
NewMemoryBitmapSet create bitmap base on memory
type Bloom ¶
type Bloom struct {
// contains filtered or unexported fields
}
Bloom bloom filter,
func NewBloomFilter ¶
New creates a new Bloom filter with m bits and k hashing functions
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.