1. 10 Jun, 2020 1 commit
    • Paul Spooren's avatar
      LRANK: Add command (the command will be renamed LPOS). · a7936ef9
      Paul Spooren authored
      The `LRANK` command returns the index (position) of a given element
      within a list. Using the `direction` argument it is possible to specify
      going from head to tail (acending, 1) or from tail to head (decending,
      -1). Only the first found index is returend. The complexity is O(N).
      
      When using lists as a queue it can be of interest at what position a
      given element is, for instance to monitor a job processing through a
      work queue. This came up within the Python `rq` project which is based
      on Redis[0].
      
      [0]: https://github.com/rq/rq/issues/1197
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      a7936ef9
  2. 09 Jun, 2020 2 commits
  3. 08 Jun, 2020 9 commits
  4. 07 Jun, 2020 1 commit
  5. 06 Jun, 2020 3 commits
  6. 03 Jun, 2020 1 commit
  7. 02 Jun, 2020 1 commit
  8. 31 May, 2020 3 commits
  9. 29 May, 2020 3 commits
  10. 28 May, 2020 9 commits
  11. 27 May, 2020 7 commits