namespace WIDESEAWCS_RedisService.Bitmap
{
public interface IBitmapService
{
bool SetBit(string key, long offset, bool value);
bool GetBit(string key, long offset);
long BitCount(string key);
long BitCount(string key, long start, long end);
}
public interface IBloomFilterService
{
///
/// 添加元素到布隆过滤器
///
void Add(string filterName, string value);
///
/// 检查元素是否可能存在
///
bool MayExist(string filterName, string value);
///
/// 批量添加
///
void AddRange(string filterName, IEnumerable values);
}
}