Redis®*: Other useful commands
This documentation is part of the Rank users in real time guide. You can view the complete guide here: Learn how to rank 2 million users by score in real time using Redis.
👋 Welcome to the Stackhero documentation!
Stackhero provides a ready-to-use Redis cloud solution that delivers numerous advantages, including:
- Redis Commander web interface included.
- Unlimited message size and transfers.
- One-click simplified updates.
- Optimal performance and enhanced security thanks to a private, dedicated infrastructure.
Save time and make your life easier: 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"