C# Class BB.Caching.Redis.BloomFilter

Bloom filter class using redis.
Mostra file Open project: JesseBuesking/BB.Caching

Private Properties

Property Type Description
AllBitsSet bool
AllBitsSetAsync Task
SetBits void
SetBitsAsync System.Threading.Tasks.Task

Public Methods

Method Description
Add ( string key, string value ) : void

Adds a value to the bloom filter.

AddAsync ( string key, string value ) : System.Threading.Tasks.Task

Adds a value to the bloom filter.

BloomFilter ( long numberOfItems = 1000000, float probFalsePos = 0.001f ) : System

Initializes a new instance of the BloomFilter class.

IsSet ( string key, string value ) : bool

Determines if the value is set in the bloom filter.

IsSetAsync ( string key, string value ) : Task

Determines if the value is set in the bloom filter.

ToString ( ) : string

The to string.

Private Methods

Method Description
AllBitsSet ( string key, RedisValue bits ) : bool

Determines if all the bits are set in the bloom filter.

AllBitsSetAsync ( string key, RedisValue bits ) : Task

Determines if all the bits are set in the bloom filter.

SetBits ( string key, RedisValue bits, bool value ) : void

Sets bits in the bloom filter.

SetBitsAsync ( string key, RedisValue bits, bool value ) : System.Threading.Tasks.Task

Sets bits in the bloom filter.

Method Details

Add() public method

Adds a value to the bloom filter.
public Add ( string key, string value ) : void
key string /// The key. ///
value string /// The value. ///
return void

AddAsync() public method

Adds a value to the bloom filter.
public AddAsync ( string key, string value ) : System.Threading.Tasks.Task
key string /// The key. ///
value string /// The value. ///
return System.Threading.Tasks.Task

BloomFilter() public method

Initializes a new instance of the BloomFilter class.
public BloomFilter ( long numberOfItems = 1000000, float probFalsePos = 0.001f ) : System
numberOfItems long /// How many items that are expected to be stored in the bloom filter. ///
probFalsePos float /// The probability [0, 1] that there will be false positives. ///
return System

IsSet() public method

Determines if the value is set in the bloom filter.
public IsSet ( string key, string value ) : bool
key string /// The key. ///
value string /// The value. ///
return bool

IsSetAsync() public method

Determines if the value is set in the bloom filter.
public IsSetAsync ( string key, string value ) : Task
key string /// The key. ///
value string /// The value. ///
return Task

ToString() public method

The to string.
public ToString ( ) : string
return string