public function tester(){
//Laravel 5.0 controller using vetruvet php redi plugin //The code works but the output is ["Array"], after the first run through
$redis = LRedis::connection();
if($redis->exists('Test')){
$Test =$redis->get('Test');
}else{
$Test = array('x'=>1,'x2'=>3);
$redis->set('Test', $Test,3600);
}
return $Test;
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire