Skip to content

Commit 81d69b4

Browse files
committed
Merge branch 'main' into DOC-4709
2 parents 44cfcda + fc3905b commit 81d69b4

File tree

99 files changed

+2505
-5209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2505
-5209
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/data/repos.json
77
/data/tool_types.json
88
/data/versions.json
9+
/data/components_local/
910
/examples
1011
build/components/__pycache__/
1112
venv/**
@@ -14,3 +15,4 @@ package-lock.json
1415
.hugo_build.lock
1516
.vscode/
1617
.DS_Store
18+
.idea

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ HUGO_BUILD=--gc
44

55
all: clean deps components hugo
66
serve: clean deps components serve_hugo
7+
localserve: clean deps components_local serve_hugo
78

89
deps:
910
@npm install
@@ -13,6 +14,9 @@ deps:
1314
components:
1415
@python3 build/make.py
1516

17+
components_local:
18+
@python3 build/make.py --stack ./data/components_local/index.json
19+
1620
hugo:
1721
@hugo $(HUGO_DEBUG) $(HUGO_BUILD)
1822

content/commands/auth/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ The AUTH command authenticates the current connection in two cases:
5151
Redis versions prior of Redis 6 were only able to understand the one argument
5252
version of the command:
5353

54-
AUTH <password>
54+
{{< clients-example cmds_cnxmgmt auth1 >}}
55+
AUTH "temp-pass"
56+
{{< /clients-example >}}
5557

5658
This form just authenticates against the password set with `requirepass`.
5759
In this configuration Redis will deny any command executed by the just
@@ -62,7 +64,9 @@ Otherwise, an error is returned and the clients needs to try a new password.
6264

6365
When Redis ACLs are used, the command should be given in an extended way:
6466

65-
AUTH <username> <password>
67+
{{< clients-example cmds_cnxmgmt auth2 >}}
68+
AUTH "test-user" "strong_password"
69+
{{< /clients-example >}}
6670

6771
In order to authenticate the current connection with one of the connections
6872
defined in the ACL list (see [`ACL SETUSER`]({{< relref "/commands/acl-setuser" >}})) and the official [ACL guide]({{< relref "/operate/oss_and_stack/management/security/acl" >}}) for more information.

content/commands/cluster-forget/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ complexity: O(1)
2626
description: Removes a node from the nodes table.
2727
group: cluster
2828
hidden: false
29+
history:
30+
- - 7.2.0
31+
- Forgotten nodes are automatically propagated across the cluster via gossip.
2932
linkTitle: CLUSTER FORGET
3033
since: 3.0.0
3134
summary: Removes a node from the nodes table.
@@ -49,6 +52,10 @@ table of the node receiving the command, it also implements a ban-list, not
4952
allowing the same node to be added again as a side effect of processing the
5053
*gossip section* of the heartbeat packets received from other nodes.
5154

55+
Starting with Redis 7.2.0, the ban-list is included in cluster gossip ping/pong messages.
56+
This means that `CLUSTER FORGET` doesn't need to be sent to all nodes in a cluster.
57+
You can run the command on one or more nodes, after which it will be propagated to the rest of the nodes in most cases.
58+
5259
## Details on why the ban-list is needed
5360

5461
In the following example we'll show why the command must not just remove
@@ -86,3 +93,8 @@ The command does not succeed and returns an error in the following cases:
8693
1. The specified node ID is not found in the nodes table.
8794
2. The node receiving the command is a replica, and the specified node ID identifies its current master.
8895
3. The node ID identifies the same node we are sending the command to.
96+
97+
## Behavior change history
98+
99+
* `>= 7.2.0`: Automatically propagate node deletion to other nodes in a cluster, allowing nodes to be deleted with a single call
100+
in most cases.

content/commands/flushall/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ It is possible to use one of the following modifiers to dictate the flushing mod
6262
* `ASYNC`: flushes the databases asynchronously
6363
* `SYNC`: flushes the databases synchronously
6464

65+
{{< clients-example cmds_servermgmt flushall >}}
66+
FLUSHALL SYNC
67+
{{< /clients-example >}}
68+
6569
## Notes
6670

6771
* An asynchronous `FLUSHALL` command only deletes keys that were present at the time the command was invoked. Keys created during an asynchronous flush will be unaffected.

content/commands/hgetall/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,20 @@ of the reply is twice the size of the hash.
5353

5454
## Examples
5555

56+
{{< clients-example cmds_hash hgetall >}}
57+
redis> HSET myhash field1 "Hello"
58+
(integer) 1
59+
redis> HSET myhash field2 "World"
60+
(integer) 1
61+
redis> HGETALL myhash
62+
1) "field1"
63+
2) "Hello"
64+
3) "field2"
65+
4) "World"
66+
{{< /clients-example >}}
67+
68+
Give these commands a try in the interactive console:
69+
5670
{{% redis-cli %}}
5771
HSET myhash field1 "Hello"
5872
HSET myhash field2 "World"

content/commands/hvals/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ Returns all values in the hash stored at `key`.
5151

5252
## Examples
5353

54+
{{< clients-example cmds_hash hvals >}}
55+
redis> HSET myhash field1 "Hello"
56+
(integer) 1
57+
redis> HSET myhash field2 "World"
58+
(integer) 1
59+
redis> HVALS myhash
60+
1) "Hello"
61+
2) "World"
62+
{{< /clients-example >}}
63+
64+
Give these commands a try in the interactive console:
65+
5466
{{% redis-cli %}}
5567
HSET myhash field1 "Hello"
5668
HSET myhash field2 "World"

content/commands/incrbyfloat/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ regardless of the actual internal precision of the computation.
8181
## Examples
8282

8383
{{% redis-cli %}}
84-
SET mykey 10.50
85-
INCRBYFLOAT mykey 0.1
86-
INCRBYFLOAT mykey -5
87-
SET mykey 5.0e3
88-
INCRBYFLOAT mykey 2.0e2
84+
SET mykey "10.50"
85+
INCRBYFLOAT mykey "0.1"
86+
INCRBYFLOAT mykey "-5"
87+
SET mykey "5.0e3"
88+
INCRBYFLOAT mykey "2.0e2"
8989
{{% /redis-cli %}}
9090

9191

content/commands/info/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ It can also take the following values:
6868

6969
When no parameter is provided, the `default` option is assumed.
7070

71+
{{< clients-example cmds_servermgmt info >}}
72+
INFO
73+
{{< /clients-example >}}
74+
75+
Give these commands a try in the interactive console:
76+
7177
{{% redis-cli %}}
7278
INFO
7379
{{% /redis-cli %}}

content/commands/llen/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ An error is returned when the value stored at `key` is not a list.
5151

5252
## Examples
5353

54+
{{< clients-example cmds_list llen >}}
55+
redis> LPUSH mylist "World"
56+
(integer) 1
57+
redis> LPUSH mylist "Hello"
58+
(integer) 2
59+
redis> LLEN mylist
60+
(integer) 2
61+
{{< /clients-example >}}
62+
63+
Give these commands a try in the interactive console:
64+
5465
{{% redis-cli %}}
5566
LPUSH mylist "World"
5667
LPUSH mylist "Hello"

0 commit comments

Comments
 (0)