python - How to get client addr from redis? -


i testing redis in heroku. have simple flask app can create redis client , kill client ...

@app.route('/client-status') def client_status():     redis.client_setname("first")     redis.client_kill('addr') #10.157.2.68:60097     return "success" 

the question how addr ? know way name redis.client_getname()...

you should use command client list http://redis.io/commands/client-list information client connections server, , retrieve address field


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -