Search code examples
redisredisson

Using redisson how to check if a given key is present in redis


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 ?


Solution

  • 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.