RedisBloom / JRedisBloom

Java Client for RedisBloom probabilistic module
https://redisbloom.io
BSD 2-Clause "Simplified" License
153 stars 33 forks source link

No option to check if a particular key exists or not. #58

Closed manojjgudi closed 2 years ago

manojjgudi commented 2 years ago

There is no function to check if a filter already exists with a given key.

gkorland commented 2 years ago

what do you mean if a filter already with a given key can you give an example? Do you mean you want to check if the the filter exists at all? See: https://redis.io/commands/EXISTS Or Do you mean to see if the filter has a specific value in it? See: https://oss.redis.com/redisbloom/Bloom_Commands/#bfexists

manojjgudi commented 2 years ago

what do you mean if a filter already with a given key can you give an example? Do you mean you want to check if the the filter exists at all? See: https://redis.io/commands/EXISTS Or Do you mean to see if the filter has a specific value in it? See: https://oss.redis.com/redisbloom/Bloom_Commands/#bfexists

Yes I am referring to EXISTS command. but this client doesn't have any implementation for that.

ashtul commented 2 years ago

Which client are you using? Does it not support passing raw commands?

manojjgudi commented 2 years ago

I am using rebloom client i.e., io.rebloom.client.Client. It doesnot have any method for the implementation of EXISTS command.

sazzad16 commented 2 years ago

Hi @manojjgudi,

Sorry for replying late. The process of using both regular Redis commands and RedisBloom was a bit annoying. The idea was that you'd create JedisPool and pass that to Client. Then do Redis commands using JedisPool and RedisBloom commands using Client.

RedisBloom commands have been included in Jedis and would be published soon. Hope this would be helpful for you.