Introduction
ZCARD helps you find out how many items are in a sorted set. It tells you the size quickly without listing all items.
You want to know how many players are in a game leaderboard.
You need to check how many tasks are in a priority queue.
You want to count how many products are in a sorted catalog.
You want to monitor how many users have scored points today.
You want to limit actions based on the number of items in a set.