1. 07 Jun, 2022 1 commit
    • Binbin's avatar
      Handle multiple_token flag in generate-command-help.rb (#10822) · 3d56f607
      Binbin authored
      Currently generate-command.help.rb dose not handle the
      multiple_token flag, handle this flag in this PR.
      The format is the same as redis-cli rendering.
      ```diff
      - bitfield_ro key GET encoding offset [encoding offset ...]
      + bitfield_ro key GET encoding offset [GET encoding offset ...]
      ```
      
      Re run generate-command-code.py which was forget in #10820.
      Also change the flag value from string to bool, like "true" to true
      3d56f607
  2. 06 Jun, 2022 1 commit
  3. 06 Apr, 2022 1 commit
    • Itamar Haber's avatar
      Fixes commands' syntices (#10534) · 3e09a8c0
      Itamar Haber authored
      Fixes in command argument in json files
      * Fixes BITFIELD's syntax ("sub-commands" can be repeated, and OVERFLOW is only valid for SET and INCR)
      * Improves readability of SET (reordered)
      * Fixes GEOSEARCH and GEOSEARCH_RO syntices (use `oneof` for mutually exclusive group instead of `optional`)
      * Fixes MIGRATE syntax (use `oneof` for mutually exclusive group instead of `optional`)
      * Fixes MODULE LOADEX syntax (the `CONFIG` token should be repeated too when using multiple configs)
      
      other:
      * make generate-command-help.rb accept a path to commands.json, or read it from stdin (e.g. `generate-commands-json.py | generate-command-help.rb -`)
      3e09a8c0
  4. 05 Apr, 2022 1 commit
  5. 28 Feb, 2022 1 commit
  6. 05 Feb, 2022 1 commit
  7. 30 Jan, 2022 1 commit
  8. 27 Jan, 2022 1 commit
  9. 18 May, 2021 1 commit
  10. 06 Apr, 2021 1 commit
  11. 22 Feb, 2021 1 commit
  12. 31 Jan, 2021 1 commit
  13. 08 Nov, 2020 1 commit
  14. 12 Jun, 2020 1 commit
  15. 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
  16. 30 Apr, 2020 2 commits
  17. 17 Oct, 2018 1 commit
  18. 27 Jun, 2018 1 commit
  19. 07 Jun, 2018 1 commit
  20. 14 Jun, 2016 1 commit
  21. 13 Apr, 2016 1 commit
  22. 17 Nov, 2015 1 commit
  23. 14 Dec, 2014 1 commit
    • Alon Diamant's avatar
      Added <count> parameter to SPOP: · 28802887
      Alon Diamant authored
      spopCommand() now runs spopWithCountCommand() in case the <count> param is found.
      Added intsetRandomMembers() to Intset: Copies N random members from the set into inputted 'values' array. Uses either the Knuth or Floyd sample algos depending on ratio count/size.
      Added setTypeRandomElements() to SET type: Returns a number of random elements from a non empty set. This is a version of setTypeRandomElement() that is modified in order to return multiple entries, using dictGetRandomKeys() and intsetRandomMembers().
      Added tests for SPOP with <count>: unit/type/set, unit/scripting, integration/aof
      --
      Cleaned up code a bit to match with required Redis coding style
      28802887
  24. 22 Apr, 2014 1 commit
  25. 14 May, 2013 1 commit
  26. 30 Oct, 2012 1 commit
  27. 27 Apr, 2012 1 commit
  28. 03 Apr, 2012 1 commit
  29. 19 Dec, 2010 1 commit
  30. 15 Dec, 2010 1 commit
  31. 28 Nov, 2010 2 commits
  32. 16 Nov, 2010 1 commit
    • Tj Holowaychuk's avatar
      Added redis-cli interactive help support · 5397f2b5
      Tj Holowaychuk authored
      updated via commands.json in redis-doc repo. Currently
      use `make src/help.h` to re-generate. The following
      are valid from the REPL:
      
        help
        help [command]
        help [group]
        help groups
      
      ex:
      
        help sort
        help hash
      5397f2b5