Redis sort and remove multiple data from hset (sort get command practice)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.