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); }