trans = conn.multi();
trans.hset("user:" + uid, "following", String.valueOf(following));
trans.hset("user:" + otherUid, "followers", String.valueOf(followers));
if (statuses.size() > 0) {
for (Tuple status : statuses){
trans.zadd("home:" + uid, status.getScore(), status.getElement());
}
}
trans.zremrangeByRank("home:" + uid, 0, 0 - HOME_TIMELINE_SIZE - 1);
trans.exec();