![]() |
RedisX v1.0
A simple, light-weight Redis database client
|
Functions | |
| int | redisxAddConnectHook (Redis *redis, void(*setupCall)(Redis *)) |
| int | redisxAddDisconnectHook (Redis *redis, void(*cleanupCall)(Redis *)) |
| void | redisxClearConnectHooks (Redis *redis) |
| void | redisxClearDisconnectHooks (Redis *redis) |
| int | redisxRemoveConnectHook (Redis *redis, void(*setupCall)(Redis *)) |
| int | redisxRemoveDisconnectHook (Redis *redis, void(*cleanupCall)(Redis *)) |
A set of functions to manage callback hooks for the RedisX library.
Adds a connect call hook, provided it is not already part of the setup routine.
| redis | Pointer to a Redis instance. |
| setupCall | User-specified callback routine to be called after the Redis instance has been connected. It will be passed a pointer to the Redis instance, which triggered the call by having established connection. |
Adds a cleanup call, provided it is not already part of the cleanup routine, for when the specified Redis instance is disconnected.
| redis | Pointer to a Redis instance. |
| cleanupCall | User specified function to call when Redis is disconnected. It will be passed a pointer to the Redis instance, which triggered the call by having disconnected from the Redis server. |
| void redisxClearConnectHooks | ( | Redis * | redis | ) |
| void redisxClearDisconnectHooks | ( | Redis * | redis | ) |