Reputation: 605
What is the cheapest way of checking whether there is at least one key that matches a key glob pattern in Redis? I don't need to know what the key is or how many matching keys there are.
Upvotes: 1
Views: 783
Reputation: 141
You can use SCAN command to get the details of the key you are looking for. You can find more details on SCAN at: https://redis.io/commands/scan
Upvotes: 1