Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7240

[RESP] Sorted Set commands including WITHSCORES options should return list of lists

XMLWordPrintable

      Commands returning elements of sorted sets with WITHSCORES option should return them as list of lists:

      Infinispan:

      127.0.0.1:11222> zadd zset 1 a 2 b 3 c
      (integer) 3
      127.0.0.1:11222> zrange zset 0 -1 WITHSCORES
      1) "a"
      2) "1.0"
      3) "b"
      4) "2.0"
      5) "c"
      6) "3.0"
      

      Redis RESP2:

      127.0.0.1:6379> zrange zset 0 -1 WITHSCORES
      1) "a"
      2) "1"
      3) "b"
      4) "2"
      5) "c"
      6) "3"
      

      Redis RESP3:

      127.0.0.1:6379> zrange zset 0 -1 WITHSCORES
      1) 1) "a"
         2) (double) 1
      2) 1) "b"
         2) (double) 2
      3) 1) "c"
         2) (double) 3
      

              rh-ee-jbolina Jose Bolina
              rhn-support-pdrobek Pavel Drobek
              Pavel Drobek Pavel Drobek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: