saving elements to redis