Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14605

RESP "sorted set" commands

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Critical
    • None
    • None
    • RESP
    • None

    Description

      Collection of strings that assign an order to your elements, and are one of the most advanced data structures in Redis. These are similar to Redis Sets, only that Sets have no order while Sorted Sets associate every member with a score. 

      Redis Sorted Sets Use Cases

      1. Q&A Platforms: Many Q&A platforms like Stack Overflow and Quora use Redis Sorted Sets to rank the highest voted answers for each proposed question to ensure the best quality content is listed at the top of the page.
      2. Gaming App Scoreboards: Online gaming apps leverage Redis Sorted Sets to maintain their high score lists, as scores can be repeated, but the strings which contain the unique user details cannot.
      3. Task Scheduling Service: Redis Sorted Sets are a great tool for a task scheduling service, as you can associate a score to rank the priority of a task in your queue. For any task that does not have a score noted, you can use the WEIGHTS option to a default of 1.
      4. Geo Hashing: The Redis geo indexing API uses a Sorted Set for the Geo Hash technique which allows you to index locations based on latitude and longitude, turning multi dimensional data into linear data.

      source: http://highscalability.com/blog/2019/9/3/top-redis-use-cases-by-core-data-structure-types.html

      Attachments

        Issue Links

          Activity

            People

              karestig@redhat.com Katia Aresti
              karestig@redhat.com Katia Aresti
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: