adds writing into redis