Skip to content

Commit dc130d0

Browse files
committed
add docs for negative client filter
Signed-off-by: zhaozhao.zz <[email protected]>
1 parent baf1352 commit dc130d0

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

commands/client-kill.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ instead of killing just by address. The following filters are available:
2626
* `CLIENT KILL DB db`. Kill clients operating on the specified database id.
2727
* `CLIENT KILL IP ip`. Kill clients with the specified originating IP address.
2828
* `CLIENT KILL CAPA capa`. Kill clients that have the specified capabilities.
29+
* `CLIENT KILL NOT-ID client-id [client-id ...]`. Kill clients are not in the IDs set.
30+
* `CLIENT KILL NOT-TYPE type`. Kill clients are not in the specified type.
31+
* `CLIENT KILL NOT-ADDR ip:port`. Kill clients except the specified ip and port.
32+
* `CLIENT KILL NOT-LADDR ip:port`. Kill all clients not connected to specified local (bind) address.
33+
* `CLIENT KILL NOT-USER username`. Closes all the connections that are not authenticated with the specified [ACL](../topics/acl.md) username.
34+
* `CLIENT KILL NOT-FLAGS flags`. Kill clients not with the specified flag string.
35+
* `CLIENT KILL NOT-NAME name`. Kill clients not with the specified name.
36+
* `CLIENT KILL NOT-LIB-NAME lib-name`. Kill clients not using the specified library name.
37+
* `CLIENT KILL NOT-LIB-VER lib-version`. Kill clients not with the specified library version.
38+
* `CLIENT KILL NOT-DB db`. Kill clients not with the specified database ID.
39+
* `CLIENT KILL NOT-CAPA capa`. Kill clients not with the specified capabilities.
40+
* `CLIENT KILL NOT-IP ip`. Kill clients not with the specified IP address.
2941

3042
It is possible to provide multiple filters at the same time. The command will handle multiple filters via logical AND. For example:
3143

commands/client-list.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,30 @@ You can use one or more optional arguments to filter the list:
3737

3838
- **`CAPA capa`**: Filters the list to include only clients with the specified capabilities.
3939

40+
- **`NOT-ID client-id [client-id ...]`**: Excludes clients in the IDs set.
41+
42+
- **`NOT-TYPE`**: Excludes clients of the specified type.
43+
44+
- **`NOT-ADDR`**: Excludes clients of the specified address and port.
45+
46+
- **`NOT-LADDR`**: Excludes clients connected to the specified local address and port.
47+
48+
- **`NOT-USER`**: Excludes clients of the specified user.
49+
50+
- **`NOT-FLAGS`**: Excludes clients with the specified flag string.
51+
52+
- **`NOT-NAME`**: Excludes clients with the specified name.
53+
54+
- **`NOT-LIB-NAME`**: Excludes clients using the specified library name.
55+
56+
- **`NOT-LIB-VER`**: Excludes clients with the specified library version.
57+
58+
- **`NOT-DB`**: Excludes clients with the specified database ID.
59+
60+
- **`NOT-CAPA`**: Excludes clients with the specified capabilities.
61+
62+
- **`NOT-IP`**: Excludes clients with the specified IP address.
63+
4064
Filters can be combined to perform more precise searches. The command will handle multiple filters via logical AND.
4165

4266
Here is the meaning of the fields:

0 commit comments

Comments
 (0)