Sorted set top-N
Top 10 entries from a sorted set with scores
redis-cli ZREVRANGEBYSCORE leaderboard +inf -inf WITHSCORES LIMIT 0 10
More redis commands
-
redis-cli XADD mystream '*' event login user aliceAppend a message to a Redis Stream with auto-ID
-
redis-cli -c CLUSTER INFO && redis-cli -c CLUSTER NODESCluster health and node list with slot ranges
-
redis-benchmark -q -n 100000 -c 50 -P 10100k requests, 50 clients, 10 pipeline depth (quiet output)
-
redis-cli --bigkeysSample keyspace to find largest keys per type; note: estimates, runs SCAN not blocking
-
redis-cli --memkeysSample keys ranked by actual memory usage, not element count; finds RAM hogs