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

[RESP] Sorted Set commands return score as a String instead of Double

XMLWordPrintable

      Infinispan should return a score of a Sorted Set member as a double representation instead of String. (Bulk String is valid with RESP2)

      ZSCORE example (applies for all the commands returning score (eg. via WITHSCORE option)):

      Infinispan:

      127.0.0.1:11222> zadd zset 15 key
      (integer) 1
      127.0.0.1:11222> ZSCORE zset key
      "15.0"
      

      Redis:

      27.0.0.1:6379> zadd zset 15 key
      (integer) 1
      127.0.0.1:6379> zscore zset key
      (double) 15
      

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

                Created:
                Updated:
                Resolved: