ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## auth ##### *Description* Authenticate the connection using a password. *Warning*: The password is sent in plain-text over the network. 使用PASSWORD验证链接。警告:PASSWD以明码的形式在网络中传输。 ##### *Parameters* *STRING*: password ##### *Return value* *BOOL*: `<span class="calibre12">TRUE</span>` if the connection is authenticated, `<span class="calibre12">FALSE</span>` otherwise. ##### *Example* ``` <pre class="calibre9">$redis->auth('foobared'); ``` ##