Redis®*: Other useful commands
This documentation is part of the Rank users in real time guide. View the full guide here: Learn how to rank 2 million users per score in real time using Redis.
👋 Welcome to the Stackhero documentation!
Stackhero offers a ready-to-use Redis cloud solution that provides a host of benefits, including:
Redis Commanderweb UI included.- Unlimited message size and transfers.
- Effortless updates with just a click.
- Optimal performance and robust security powered by a private and dedicated VM.
Save time and simplify your life: it only takes 5 minutes to try Stackhero's Redis cloud hosting solution!
Below are some additional Redis commands used on our client's website:
- Get users ranked between positions 50 and 100:
ZREVRANGE usersScores 50 100 WITHSCORES - Add a user:
ZADD usersScores 40 "userId4" - Update a user's score (this replaces the existing
userId4entry):ZADD usersScores 42 "userId4" - Remove a user:
ZREM usersScores "userId4"