在线工具
网站地图    收藏    合作   
<

快捷菜单 返回顶部

php操作redis

返回上层

系统和通用函数 - auth - 命令/方法/函数

Description

Authenticate the connection using a password. Warning: The password is sent in plain-text over the network.

使用PASSWORD验证链接。警告:PASSWD以明码的形式在网络中传输。

当redis配置了密码认证的时候(去了解redis配置密码的方法),需要通过此方法验证授权。


Parameters

STRING: password

字符串:密码


Return value

BOOL: TRUE if the connection is authenticated, FALSE otherwise.


Example

$redis->auth('foobared');


来源:https://www.daixiaorui.com/

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com