LPOSReturn the index of matching elements in a list.
| 语法 | LPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len] |
| 分组 | list |
| 参数个数 | -3 |
| 起始版本 | 1.0.0 |
| 标志 | readonly |
| 复杂度 | O(N) always — the whole list is copied before RANK / COUNT / MAXLEN are applied, so MAXLEN bounds the comparisons but not the copy |
| Redis 兼容性 | full |