Example #1
0
    def __init__(self, capacity, error_rate=0.001, redis_host='localhost',
                 redis_port=6379, redis_prefix='bloomfilter'):

        RedisHashing.__init__(self, redis_host, redis_port, redis_prefix)
        BloomFilter.__init__(self, capacity, error_rate)
 def __init__(self, delta, epsilon, k, redis_host='localhost',
              redis_port=6379, redis_prefix='countminsketch'):
     RedisHashing.__init__(self, redis_host, redis_port, redis_prefix)
     CountMinSketch.__init__(self, delta, epsilon, k)