How to realize Redis connection and Authentication by php
This article is about how php implements Redis connection and authentication. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Redis connection and authentication
/ / connection parameters: ip, port, connection timeout. Return true if the connection succeeds, otherwise return false$ret = $redis- > connect ('127.0.0.1, 6379, 30); / / password authentication: return true successfully, otherwise return false$ret = $redis- > auth (' 123456'). Thank you for reading! On "php how to achieve Redis connection and authentication" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!