예제 #1
0
파일: Redis.php 프로젝트: im286er/LuckyPHP
 public function __construct()
 {
     parent::__construct();
     $redisHost = Configure::get('redis', 'host');
     $redisPort = Configure::get('redis', 'port');
     $this->connect($redisHost, $redisPort);
 }
예제 #2
0
파일: test.php 프로젝트: im286er/LuckyPHP
 protected function redis()
 {
     $redis = new Redis();
     $redis->set('cache', 'test', 10);
     echo $redis->get('cache');
 }