mardi 1 juillet 2014

How to use Redis in php?


Vote count:

0




I installed redis 2.8.12 and configured phpredis. Then I called redis instance in php class. But there is no result, can you help me?



public function __construct() {

try {
echo ':) ';
$newRedis = new Redis();
echo ':P ';
}
catch (Exception $e) {
echo $e -> getMessage();
}



}


this printed :), not printed :P



asked 11 secs ago






Aucun commentaire:

Enregistrer un commentaire