Closed kylekyle closed 2 years ago
Bah. I didn't realize the redis
referred to in line 2 was the client not the module. It should be:
import redis
client = redis.Redis(host='localhost')
filter = client.bf().create("bloom", 0.01, 1000)
filter.add("bloom", "foo")
Version: redis-py 4.1.4
Platform: Python 3.9.7 on Debian 11 (bullseye)
Description: According to the docs, the following snippet of code should work for accessing the RedisBloom commands on a client:
But running this gives:
Same result for the other RedisBloom commands (cms/topk/etc.)