1. 29 Sep, 2014 1 commit
  2. 07 Aug, 2014 1 commit
    • Matt Stancliff's avatar
      Fix key extraction for SORT · 87815ab5
      Matt Stancliff authored
      We only want to use the last STORE key, but we have to record
      we actually found a STORE key so we can increment the final return
      key count.
      
      Test added to prevent further regression.
      
      Closes #1883, #1645, #1647
      87815ab5
  3. 06 Apr, 2014 1 commit
  4. 03 Oct, 2012 1 commit
    • antirez's avatar
      "SORT by nosort" (skip sorting) respect sorted set ordering. · 9a914a63
      antirez authored
      When SORT is called with the option BY set to a string constant not
      inclduing the wildcard character "*", there is no way to sort the output
      so any ordering is valid. This allows the SORT internals to optimize its
      work and don't really sort the output at all.
      
      However it was odd that this option was not able to retain the natural
      order of a sorted set. This feature was requested by users multiple
      times as sometimes to call SORT with GET against sorted sets as a way to
      mass-fetch objects can be handy.
      
      This commit introduces two things:
      
      1) The ability of SORT to return sorted sets elements in their natural
      ordering when `BY nosort` is specified, accordingly to `DESC / ASC` options.
      2) The ability of SORT to optimize this case further if LIMIT is passed
      as well, avoiding to really fetch the whole sorted set, but directly
      obtaining the specified range.
      
      Because in this case the sorting is always deterministic, no
      post-sorting activity is performed when SORT is called from a Lua
      script.
      
      This commit fixes issue #98.
      9a914a63
  5. 17 Apr, 2012 1 commit
  6. 01 Feb, 2012 4 commits
  7. 30 Jan, 2012 1 commit
  8. 19 Dec, 2011 1 commit
  9. 01 Dec, 2011 1 commit
  10. 10 Dec, 2010 1 commit
  11. 15 Oct, 2010 1 commit
  12. 26 Aug, 2010 1 commit
  13. 21 Aug, 2010 4 commits
  14. 02 Jun, 2010 3 commits
  15. 14 May, 2010 2 commits