Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,12 @@ def client_setname(self, name: str, **kwargs) -> ResponseT:
Sets the current connection name

For more information see https://redis.io/commands/client-setname

.. note::
This method sets client name only for **current** connection.

If you want to set a common name for all connections managed
by this client, use ``client_name`` constructor argument.
"""
return self.execute_command("CLIENT SETNAME", name, **kwargs)

Expand Down