C# Класс BB.Caching.Redis.BloomFilter

Bloom filter class using redis.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
AllBitsSet bool
AllBitsSetAsync Task
SetBits void
SetBitsAsync System.Threading.Tasks.Task

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Add() публичный Метод

Adds a value to the bloom filter.
public Add ( string key, string value ) : void
key string /// The key. ///
value string /// The value. ///
Результат void

AddAsync() публичный Метод

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. ///
Результат System.Threading.Tasks.Task

BloomFilter() публичный Метод

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. ///
Результат System

IsSet() публичный Метод

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. ///
Результат bool

IsSetAsync() публичный Метод

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. ///
Результат Task

ToString() публичный Метод

The to string.
public ToString ( ) : string
Результат string