$redis = new Resid();
$redis->connect('192.168.160.128',6379);
$redis->select(9);
$redis->set('name','tom');
$redis->set('age','30');
$redis->set('height',185);
$redis->set('weight',120);
$redis->lpush('newlogin','linken');
$redis->zadd('hotmsg',2300,20);
$redis->hset('goods','goods_name','htc');
$redis->hmset('goods',array('goods_id'=>'100','goods_price'=>'1900'));
var_dump($redis->type('name')); #1-->string
var_dump($redis->type('newlogin')); #3--->list
var_dump($redis->type('hotmsg')); #4--->zset
var_dump($redis->type('goods')); #5--->hash