You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ On success, the reply depends on the actual command executed.
72
72
73
73
Prepends a value to a String key.
74
74
75
-
If key does not exist it is created and set as an empty string, so PREPEND will be similar to SET in this special case.
75
+
If `key` does not exist it is created and set as an empty string, so `PREPEND` will be similar to [`SET`](http://redis.io/commands/set) in this special case.
76
76
77
77
**Reply:** Integer, the length of the string after the prepend operation.
78
78
@@ -88,7 +88,7 @@ optional `charset` may be provided:
88
88
*`ALNUM` - letters and digits
89
89
*`PUNC` - all printable characters other than alphanumerics
90
90
*`HEX` - hexadecimal: a-f, 0-9
91
-
*`CURSE` - censored profanity (!@#$%^&?*)
91
+
*`CURSE` - censored profanity (!@#$%^&?\*)
92
92
*`BINARY` - all characters between 0 and 255
93
93
*`READABLE` - letters only, but more pronounceable
94
94
*`TEXT` - this is the default, any printable character (union of `ALPHA` + `DIGIT` + `PUNC`)
@@ -234,57 +234,57 @@ Pops the element with the highest score from a Sorted Set.
234
234
235
235
## `ZADDCAPPED zset cap score member [score member ...]`
236
236
237
-
> Time complexity: O(N*LogM) where N is the number of elements added and M is the number of elements in the Sorted Set.
237
+
> Time complexity: O(N\*LogM) where N is the number of elements added and M is the number of elements in the Sorted Set.
238
238
239
239
Adds members to a Sorted Set, keeping it at `cap` cardinality. Removes top scoring members as needed to meet the limit.
240
240
241
241
**Reply:** Integer, the number of members added.
242
242
243
243
## `ZADDREVCAPPED zset cap score member [score member ...]`
244
244
245
-
> Time complexity: O(N*LogM) where N is the number of elements added and M is the number of elements in the Sorted Set.
245
+
> Time complexity: O(N\*LogM) where N is the number of elements added and M is the number of elements in the Sorted Set.
246
246
247
247
Adds members to a Sorted Set, keeping it at `cap` cardinality. Removes bottom scoring members as needed to meet the limit.
248
248
249
249
**Reply:** Integer, the number of members added.
250
250
251
251
## `MZRANK key ele [ele ...]`
252
252
253
-
> Time complexity: O(N*LogM) where N is the number of elements passed as arguments to the command and M is the number of elements in the Sorted Set.
253
+
> Time complexity: O(N\*LogM) where N is the number of elements passed as arguments to the command and M is the number of elements in the Sorted Set.
254
254
255
255
A variadic variant for `ZRANK`, returns the ranks of multiple members in a Sorted Set.
256
256
257
257
**Reply:** Array of Integers.
258
258
259
259
## `MZREVRANK key ele [ele ...]`
260
260
261
-
> Time complexity: O(N*LogM) where N is the number of elements passed as arguments to the command and M is the number of elements in the Sorted Set.
261
+
> Time complexity: O(N\*LogM) where N is the number of elements passed as arguments to the command and M is the number of elements in the Sorted Set.
262
262
263
263
A variadic variant for `ZREVRANK`, returns the reverse ranks of multiple members in a Sorted Set.
264
264
265
265
**Reply:** Array of Integers.
266
266
267
267
## `MZSCORE key ele [ele ...]`
268
268
269
-
> Time complexity: O(N*LogM) where N is the number of elements passed as arguments to the command and M is the number of elements in the Sorted Set.
269
+
> Time complexity: O(N\*LogM) where N is the number of elements passed as arguments to the command and M is the number of elements in the Sorted Set.
270
270
271
271
A variadic variant for `ZSCORE`, returns the scores of multiple members in a Sorted Set.
> Time complexity: O(numkeys*log(N) + K*log(numkeys)) where N is the number of elements in a Sorted Set.
277
+
> Time complexity: O(numkeys\*log(N) + K\*log(numkeys)) where N is the number of elements in a Sorted Set.
278
278
279
-
Union multiple sorted sets with min K elements returned.
279
+
Union multiple Sorted Sets and return the `K` elements with lowest scores. Refer to [`ZUNIONSTORE`](http://redis.io/commands/zunionstore)'s documentation for details on using the command.
280
280
281
281
**Reply:** Array reply, the top k elements (optionally with the score, in case the 'WITHSCORES' option is given).
> Time complexity: O(numkeys*log(N) + K*log(numkeys)) where N is the number of elements in a Sorted Set.
285
+
> Time complexity: O(numkeys\*log(N) + K\*log(numkeys)) where N is the number of elements in a Sorted Set.
286
286
287
-
Union multiple sorted sets with max K elements returned.
287
+
Union multiple Sorted Sets and return the `K` elements with highest scores. Refer to [`ZUNIONSTORE`](http://redis.io/commands/zunionstore)'s documentation for details on using the command.
288
288
289
289
**Reply:** Array reply, the top k elements (optionally with the score, in case the 'WITHSCORES' option is given).
0 commit comments