change redis method

rpop only pops off the last item