dimanche 20 septembre 2015

I'm new to phpredis and after using the set method to store an array I get ["Array"] when using the get method. How would I use the actual array?

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