We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba2b13 commit b174256Copy full SHA for b174256
README.md
@@ -412,4 +412,30 @@ then apply ->
412
"bad",
413
"good",
414
"ok"
415
-]
+]
416
+```
417
+- `SORT books:likes BY books:*->year ` :
418
+ * breakdown of the command:
419
+ - first replace the * with the member from the sorted set : books:good
420
+ - scan redis for the key books:good
421
+ - if the key exists then find the value with the year: books:good has year 1950 in it.
422
+ - create a volatile set with key value structure like:
423
+```bash
424
+good - 1950
425
+bad - 1920
426
+ok - 1960
427
428
+ - BY means sort the set by descending order like:
429
430
431
432
433
434
+response from redis:
435
436
+[
437
+ "bad",
438
+ "good",
439
+ "ok"
440
441
0 commit comments