decode parameters before storing in redis