directly on the command
SORT carcondition-17.5-40 by car-*->id desc get Car-*->chehao Get Car-*->id
Carcondition-17.5-40 in my test, the set can operate on the list and the Zset. I store the ID number of car in set
Car-* is the entity type of all vehicles is Hset
The sort command allows the ID of all vehicles in the carcondition-17.5-40 to be sorted in reverse order by the ID of the vehicle entity and then get is to take out the license plate number and the vehicle ID.
Special note Sort only appears once all in our company I plan to just let him use a multi-conditional query in the background management foreground can use multiple sets to intersect and set such operations to take out the ID and then sort the logical order in the relational database now this is my idea. Follow-up Post continues Out of the code ....
Redis sort and remove multiple data from hset (sort get command practice)