4

I have a set of keys and i want to check if any of those are present in my redis db. How can i do so using redisson library ?

priyankatanvani
  • 173
  • 1
  • 12

2 Answers2

3

RedissonKeys.countExists(String... name) can help you to determine if the key exists, without knowing the type of it beforehand.

I think this what you need.

Redisson_RuiGu
  • 1,012
  • 10
  • 13
2

You can use isExists function to check whether the key is present in redis or not.

Here is the ref link: Redis-commands-mapping-with-redisson

mn.agg
  • 281
  • 1
  • 8