MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_FreeModuleUser

Function RM_FreeModuleUser

src/module.cpp:6697–6701  ·  view source on GitHub ↗

Frees a given user and disconnects all of the clients that have been * authenticated with it. See RM_CreateModuleUser for detailed usage.*/

Source from the content-addressed store, hash-verified

6695/* Frees a given user and disconnects all of the clients that have been
6696 * authenticated with it. See RM_CreateModuleUser for detailed usage.*/
6697int RM_FreeModuleUser(RedisModuleUser *user) {
6698 ACLFreeUserAndKillClients(user->user);
6699 zfree(user);
6700 return REDISMODULE_OK;
6701}
6702
6703/* Sets the permissions of a user created through the redis module
6704 * interface. The syntax is the same as ACL SETUSER, so refer to the

Callers

nothing calls this directly

Calls 2

zfreeFunction · 0.85

Tested by

no test coverage detected