Files
redis/src
Paul Spooren a7936ef96d LRANK: Add command (the command will be renamed LPOS).
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>
2020-06-10 12:07:40 +02:00
..
2016-06-07 16:46:00 -04:00
2020-05-02 21:19:47 +08:00
2019-11-20 20:39:04 -05:00
2019-07-17 16:40:24 +03:00
2020-05-02 21:19:47 +08:00
2020-05-05 10:20:48 +02:00
2020-04-24 17:00:03 -07:00
2020-04-24 17:11:21 -07:00
2020-04-24 17:11:21 -07:00
2018-07-03 18:19:46 +02:00
2016-07-27 11:34:25 +02:00
2019-02-24 21:38:15 +01:00
2020-03-12 20:44:32 +08:00
2019-10-24 14:24:55 +03:00
2020-05-05 23:35:08 -04:00
2020-05-12 21:21:22 +01:00
2019-11-19 17:23:47 +08:00
2020-04-02 23:43:47 +08:00
2014-08-08 10:05:32 +02:00
2020-05-14 11:17:47 +02:00
2020-04-09 12:10:10 +02:00
2018-07-03 18:19:46 +02:00
2019-10-02 11:30:20 +02:00
2020-04-06 19:27:06 +08:00
2020-04-16 16:08:37 +02:00
2020-02-22 11:38:51 -05:00
2020-05-12 21:21:22 +01:00
2018-11-11 18:49:55 +00:00
2015-04-27 12:07:49 +02:00
2015-04-27 12:07:49 +02:00
2020-05-21 18:13:35 -04:00
2020-05-04 01:57:38 +08:00