1.

How To Get Array Data From Redis?

Answer»

To get the array data from REDIS use the following command :

$list = $redis->lrange("tutorials", 0 ,5);
print_r($list);
/*Array ( [0] => MYSQL [1] => Mongodb [2] => Redis [3] => MySQL [4] => PHP [5] => Mysql ) */

To get the array data from Redis use the following command :

$list = $redis->lrange("tutorials", 0 ,5);
print_r($list);
/*Array ( [0] => Mysql [1] => Mongodb [2] => Redis [3] => MySQL [4] => PHP [5] => Mysql ) */



Discussion

No Comment Found