diff options
author | Viktor Söderqvist <viktor.soderqvist@est.tech> | 2022-06-26 13:34:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 14:34:59 +0300 |
commit | 6272ca609e67d1f35dda50a82027d7401892e383 (patch) | |
tree | f584684b145807e3c5f0da6f0f3293e2b65ee461 /src/server.h | |
parent | d96cf3639a371574c212d87c70e5a80214fc721f (diff) | |
download | redis-6272ca609e67d1f35dda50a82027d7401892e383.tar.gz |
Add RM_SetClientNameById and RM_GetClientNameById (#10839)
Adding Module APIs to let the module read and set the client name of an arbitrary connection.
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index abaa5f046..6beae765b 100644 --- a/src/server.h +++ b/src/server.h @@ -2498,6 +2498,7 @@ char *getClientPeerId(client *client); char *getClientSockName(client *client); sds catClientInfoString(sds s, client *client); sds getAllClientsInfoString(int type); +int clientSetName(client *c, robj *name); void rewriteClientCommandVector(client *c, int argc, ...); void rewriteClientCommandArgument(client *c, int i, robj *newval); void replaceClientCommandVector(client *c, int argc, robj **argv); |