public static <T> CountingBloomFilterMemory<T> createCountingFilter(int n, double p, HashMethod hm) {
return new CountingBloomFilterMemory<>(new FilterBuilder(n, p).hashFunction(hm).complete());
}
public static <T> BloomFilterRedis<T> createRedisFilter(String name, int m, int k, HashMethod hm) {
return new BloomFilterRedis<>(new FilterBuilder(m, k).hashFunction(hm)
.redisBacked(true)
.name(name)
.redisHost(host)
.redisPort(port)
.overwriteIfExists(true)