- 10 Sep, 2020 1 commit
-
-
Oran Agra authored
-
- 20 Jul, 2020 1 commit
-
-
Oran Agra authored
-
- 12 Jun, 2020 2 commits
-
-
antirez authored
-
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:
Paul Spooren <mail@aparcar.org>
-
- 30 Apr, 2020 2 commits
- 17 Oct, 2018 1 commit
-
-
antirez authored
-
- 27 Jun, 2018 1 commit
-
-
Mustafa Paltun authored
-
- 07 Jun, 2018 1 commit
-
-
antirez authored
-
- 14 Jun, 2016 1 commit
-
-
antirez authored
-
- 13 Apr, 2016 1 commit
-
-
antirez authored
-
- 17 Nov, 2015 1 commit
-
-
antirez authored
-
- 14 Dec, 2014 1 commit
-
-
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
-
- 22 Apr, 2014 1 commit
-
-
antirez authored
-
- 14 May, 2013 1 commit
-
-
antirez authored
-
- 30 Oct, 2012 1 commit
-
-
antirez authored
-
- 27 Apr, 2012 1 commit
-
-
antirez authored
-
- 03 Apr, 2012 1 commit
-
-
antirez authored
-
- 19 Dec, 2010 1 commit
-
-
antirez authored
-
- 15 Dec, 2010 1 commit
-
-
antirez authored
-
- 28 Nov, 2010 2 commits
-
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
- 16 Nov, 2010 1 commit
-
-
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
-