Skip to content

Commit

Permalink
Remove quit command
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Nov 4, 2024
1 parent c6fd9d9 commit 8940023
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions docs/supported-commands/Redis/CONNECTION.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Redis `connection` commands (4/25 implemented)
# Redis `connection` commands (4/24 implemented)

## [CLIENT SETINFO](https://redis.io/commands/client-setinfo/)

Expand Down Expand Up @@ -96,10 +96,6 @@ Resumes processing commands from paused clients.

Handshakes with the Redis server.

#### [QUIT](https://redis.io/commands/quit/) <small>(not implemented)</small>

Closes the connection.

#### [RESET](https://redis.io/commands/reset/) <small>(not implemented)</small>

Resets the connection.
Expand Down
1 change: 0 additions & 1 deletion fakeredis/_basefakesocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class BaseFakeSocket:
"unsubscribe",
"psubscribe",
"punsubscribe",
"quit",
"ssubscribe",
"sunsubscribe",
}
Expand Down
2 changes: 0 additions & 2 deletions fakeredis/commands_mixins/connection_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@


class ConnectionCommandsMixin:
# Connection commands
# TODO: auth, quit

def __init__(self, *args: Any, **kwargs: Any) -> None:
super(ConnectionCommandsMixin, self).__init__(*args, **kwargs)
Expand Down
1 change: 1 addition & 0 deletions scripts/generate_supported_commands_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from fakeredis._commands import SUPPORTED_COMMANDS

IGNORE_COMMANDS = {
"QUIT",
"PUBSUB HELP",
"FUNCTION HELP",
"SCRIPT HELP",
Expand Down

0 comments on commit 8940023

Please sign in to comment.