Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize Redis connection and Authentication by php

Shulou Source: shulou.com Published: 2022-06-01 04:50:45 10月03日 Update

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!

Tags: Authentication success content more articles good practical parameters passwords articles time see knowledge ports references help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft vpn Huawei Shulou Information macOS