From 3f32b742aac72723afb7c1e1cf932ceff80914b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Srokosz?= Date: Thu, 23 Jun 2022 17:30:31 +0200 Subject: [PATCH] Docs: Add a note about client_setname and client_name difference --- redis/commands/core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/redis/commands/core.py b/redis/commands/core.py index a337d4f314..6d67415aab 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -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)