adding redis cache and saving json data in nodes