Skip to content

Commit 95327ee

Browse files
Update sorted_sets.md
1 parent 51e54b8 commit 95327ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ds/sorted_sets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Redis sets are unsorted, which limits their usefulness. Sorted sets are similar
55

66
The following example creates a set of bike brands named for famous computer programmers, using their birth year as the score element to sort the set.
77

8-
```redis Create a sorted set
8+
```redis:[run_confirmation=true] Create a sorted set
99
ZADD bike:brands 1940 "Alan Kay"
1010
ZADD bike:brands 1906 "Grace Hopper"
1111
ZADD bike:brands 1953 "Richard Stallman"
@@ -24,7 +24,7 @@ ZRANGE bike:brands 2 4
2424

2525
To delete members from a sorted set, use the `ZREM` command.
2626

27-
```redis Remove the Alan Turing model and score
27+
```redis:[run_confirmation=true] Remove the Alan Turing model and score
2828
ZREM bike:brands "Alan Turing"
2929
```
3030

@@ -44,4 +44,4 @@ You can get the rank of any sorted set member using the `ZRANK` command. Note: t
4444
ZRANK bike:brands "Claude Shannon" WITHSCORE
4545
```
4646

47-
See [here](https://redis.io/docs/data-types/sorted-sets?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) for the sorted set type reference page, and [here](https://redis.io/commands/?group=sorted-set&utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) for the entire list of Redis sorted set commands.
47+
See [here](https://redis.io/docs/data-types/sorted-sets?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) for the sorted set type reference page, and [here](https://redis.io/commands/?group=sorted-set&utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) for the entire list of Redis sorted set commands.

0 commit comments

Comments
 (0)