Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitSetProvider ¶
type BloomFilter ¶
type BloomFilter struct {
// contains filtered or unexported fields
}
func New ¶
func New(m uint, k uint, bitSet BitSetProvider) *BloomFilter
func (*BloomFilter) Add ¶
func (f *BloomFilter) Add(data []byte) error
type Connection ¶
type RedisBitSet ¶
type RedisBitSet struct {
// contains filtered or unexported fields
}
func NewRedisBitSet ¶
func NewRedisBitSet(keyPrefix string, m uint, conn Connection) *RedisBitSet
func (*RedisBitSet) Delete ¶
func (r *RedisBitSet) Delete() error
func (*RedisBitSet) Expire ¶
func (r *RedisBitSet) Expire(seconds uint) error
func (*RedisBitSet) Set ¶
func (r *RedisBitSet) Set(offsets []uint) error
Click to show internal directories.
Click to hide internal directories.