get() public method

读取缓存
public get ( string $name, mixed $default = false ) : mixed
$name string 缓存变量名
$default mixed 默认值
return mixed
 public function test()
 {
     $redis = new Redis();
     // $redis->connect('127.0.0.1',6379);
     $redis->set('test', 'hello world!');
     echo $redis->get("test");
 }
 public function redis($eid = 1)
 {
     $redis_server = new Redis();
     $data = $redis_server->get("twitter:sg:event:python:test3:" . $eid);
     $this->ajaxReturn($data);
 }