php-redis扩展方法

link:
https://github.com/phpredis/phpredis/blob/develop/README.markdown#rawcommand php redis类的讲解

http://www.cnblogs.com/zcy_soft/archive/2012/09/21/2697006.html 中文手册

redis方法列表

connect($ip,$port)                      //连接redis
auth($auth)               //验证密码

rawCommand 

set($key,$value,$expire)
get($key)
dbSize();
flushAll()
flushDb()
info()
lastsave()
resetStat()
save()
slaveOf()
time()
slowLog()


rawCommand 方法 对服务器执行任何通用命令

//添加成员
$redis->rawCommand('geoadd','as','116.435253','39.959753','as10');

//获取成员周围的人
$redis->rawComand('getradiusbymembers','as','as1','5','km','asc','withdist');

你可能感兴趣的:(php-redis扩展方法)