MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_FreeModuleUser

Function RM_FreeModuleUser

app/redis-6.2.6/src/module.c:6505–6509  ·  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

6503/* Frees a given user and disconnects all of the clients that have been
6504 * authenticated with it. See RM_CreateModuleUser for detailed usage.*/
6505int RM_FreeModuleUser(RedisModuleUser *user) {
6506 ACLFreeUserAndKillClients(user->user);
6507 zfree(user);
6508 return REDISMODULE_OK;
6509}
6510
6511/* Sets the permissions of a user created through the redis module
6512 * interface. The syntax is the same as ACL SETUSER, so refer to the

Callers

nothing calls this directly

Calls 2

zfreeFunction · 0.70

Tested by

no test coverage detected