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: content/commands/auth/index.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,9 @@ The AUTH command authenticates the current connection in two cases:
51
51
Redis versions prior of Redis 6 were only able to understand the one argument
52
52
version of the command:
53
53
54
-
AUTH <password>
54
+
{{< clients-example cmds_cnxmgmt auth1 >}}
55
+
AUTH "temp-pass"
56
+
{{< /clients-example >}}
55
57
56
58
This form just authenticates against the password set with `requirepass`.
57
59
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.
62
64
63
65
When Redis ACLs are used, the command should be given in an extended way:
64
66
65
-
AUTH <username> <password>
67
+
{{< clients-example cmds_cnxmgmt auth2 >}}
68
+
AUTH "test-user" "strong_password"
69
+
{{< /clients-example >}}
66
70
67
71
In order to authenticate the current connection with one of the connections
68
72
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.
Copy file name to clipboardExpand all lines: content/commands/flushall/index.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,10 @@ It is possible to use one of the following modifiers to dictate the flushing mod
62
62
*`ASYNC`: flushes the databases asynchronously
63
63
*`SYNC`: flushes the databases synchronously
64
64
65
+
{{< clients-example cmds_servermgmt flushall >}}
66
+
FLUSHALL SYNC
67
+
{{< /clients-example >}}
68
+
65
69
## Notes
66
70
67
71
* 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.
0 commit comments