refactor setting micro_post in redis to method