From d3a7a75c7b106e0864b3927c0904058e25c99958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Srokosz?= Date: Thu, 23 Jun 2022 18:27:04 +0200 Subject: Docs: Add a note about client_setname and client_name difference (#2247) --- redis/commands/core.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'redis/commands/core.py') diff --git a/redis/commands/core.py b/redis/commands/core.py index a337d4f..6d67415 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -687,6 +687,12 @@ class ManagementCommands(CommandsProtocol): 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) -- cgit v1.2.1