How can I find the count of all the keys that has a matching pattern.
For example, there are two keys abc:random-text-1 and abc:random-text-2 .
abc:random-text-1
abc:random-text-2
From the command line, redis-cli --scan --pattern 'abc:*' | wc -l
redis-cli --scan --pattern 'abc:*' | wc -l