converting posts to redis