pluck('id') ->each(function($reblog) use($id) { self::addPostReblog($id, $reblog); }) ->map(function($reblog) { return (string) $reblog; }); }); } return Redis::zrange(self::REBLOGS_KEY . $id, $start, $stop); } public static function addPostReblog($parentId, $reblogId) { return Redis::zadd(self::REBLOGS_KEY . $parentId, $reblogId); } public static function removePostReblog($parentId, $reblogId) { return Redis::zrem(self::REBLOGS_KEY . $parentId, $reblogId); } }