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