16.1.1.1. metwork_get_redis_callable

xattrfile.metwork_get_redis_callable()[source]

Create or return a redis instance in a metwork module context.

To create an instance, we use a unix socket connection on ${MODULE_RUNTIME_HOME}/var/redis.socket

Returns:redis connection (redis.Redis object).