Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $redisHost = Configure::get('redis', 'host');
     $redisPort = Configure::get('redis', 'port');
     $this->connect($redisHost, $redisPort);
 }
Exemplo n.º 2
0
 protected function redis()
 {
     $redis = new Redis();
     $redis->set('cache', 'test', 10);
     echo $redis->get('cache');
 }