def get_redis_server():
 global redis_server
 if (not redis_server):
  from redis import Redis
  redis_server = Redis.from_url((conf.get(u'redis_socketio') or u'redis://localhost:12311'))
 return redis_server

def get_redis_server ( ) : global redis_server if ( not redis_server ) : from redis import Redis redis_server = Redis . from_url ( ( conf . get ( u'redis_socketio' ) or u'redis://localhost:12311' ) ) return redis_server
returns redis_socketio connection .