{"action":"closed","number":763,"pull_request":{"url":"https://api.github.com/repos/go-redis/redis/pulls/763","id":187587361,"html_url":"https://github.com/go-redis/redis/pull/763","diff_url":"https://github.com/go-redis/redis/pull/763.diff","patch_url":"https://github.com/go-redis/redis/pull/763.patch","issue_url":"https://api.github.com/repos/go-redis/redis/issues/763","number":763,"state":"closed","locked":false,"title":"Reload cluster data","user":{"login":"jhutchins","id":1349982,"avatar_url":"https://avatars1.githubusercontent.com/u/1349982?v=4","gravatar_id":"","url":"https://api.github.com/users/jhutchins","html_url":"https://github.com/jhutchins","followers_url":"https://api.github.com/users/jhutchins/followers","following_url":"https://api.github.com/users/jhutchins/following{/other_user}","gists_url":"https://api.github.com/users/jhutchins/gists{/gist_id}","starred_url":"https://api.github.com/users/jhutchins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhutchins/subscriptions","organizations_url":"https://api.github.com/users/jhutchins/orgs","repos_url":"https://api.github.com/users/jhutchins/repos","events_url":"https://api.github.com/users/jhutchins/events{/privacy}","received_events_url":"https://api.github.com/users/jhutchins/received_events","type":"User","site_admin":false},"body":"I initially found that running methods with `ForEachMaster` runs a command against all the nodes that _were_ masters when the client was created, but doesn't take into account failover while running. Rather than forcing a reload of cluster data at that point I added the ability to reload it whenever you want. It's possible it would be better to extend this to automatically update this information on a periodic basis of before all of the `ForEachX` methods.\r\n\r\nThere may be a _correct_ way of doing this, but I certainly couldn't find it.","created_at":"2018-05-11T23:00:52Z","updated_at":"2018-05-21T14:18:31Z","closed_at":"2018-05-21T14:18:31Z","merged_at":null,"merge_commit_sha":"611ec178d78bc73b10067f03c73270c4fc0d7479","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/go-redis/redis/pulls/763/commits","review_comments_url":"https://api.github.com/repos/go-redis/redis/pulls/763/comments","review_comment_url":"https://api.github.com/repos/go-redis/redis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-redis/redis/issues/763/comments","statuses_url":"https://api.github.com/repos/go-redis/redis/statuses/366704c1a7d72387691be49c58f267706a5c6d2f","head":{"label":"jhutchins:add_reload_function","ref":"add_reload_function","sha":"366704c1a7d72387691be49c58f267706a5c6d2f","user":{"login":"jhutchins","id":1349982,"avatar_url":"https://avatars1.githubusercontent.com/u/1349982?v=4","gravatar_id":"","url":"https://api.github.com/users/jhutchins","html_url":"https://github.com/jhutchins","followers_url":"https://api.github.com/users/jhutchins/followers","following_url":"https://api.github.com/users/jhutchins/following{/other_user}","gists_url":"https://api.github.com/users/jhutchins/gists{/gist_id}","starred_url":"https://api.github.com/users/jhutchins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhutchins/subscriptions","organizations_url":"https://api.github.com/users/jhutchins/orgs","repos_url":"https://api.github.com/users/jhutchins/repos","events_url":"https://api.github.com/users/jhutchins/events{/privacy}","received_events_url":"https://api.github.com/users/jhutchins/received_events","type":"User","site_admin":false},"repo":{"id":133092320,"name":"redis","full_name":"jhutchins/redis","owner":{"login":"jhutchins","id":1349982,"avatar_url":"https://avatars1.githubusercontent.com/u/1349982?v=4","gravatar_id":"","url":"https://api.github.com/users/jhutchins","html_url":"https://github.com/jhutchins","followers_url":"https://api.github.com/users/jhutchins/followers","following_url":"https://api.github.com/users/jhutchins/following{/other_user}","gists_url":"https://api.github.com/users/jhutchins/gists{/gist_id}","starred_url":"https://api.github.com/users/jhutchins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhutchins/subscriptions","organizations_url":"https://api.github.com/users/jhutchins/orgs","repos_url":"https://api.github.com/users/jhutchins/repos","events_url":"https://api.github.com/users/jhutchins/events{/privacy}","received_events_url":"https://api.github.com/users/jhutchins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhutchins/redis","description":"Type-safe Redis client for Golang","fork":true,"url":"https://api.github.com/repos/jhutchins/redis","forks_url":"https://api.github.com/repos/jhutchins/redis/forks","keys_url":"https://api.github.com/repos/jhutchins/redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhutchins/redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhutchins/redis/teams","hooks_url":"https://api.github.com/repos/jhutchins/redis/hooks","issue_events_url":"https://api.github.com/repos/jhutchins/redis/issues/events{/number}","events_url":"https://api.github.com/repos/jhutchins/redis/events","assignees_url":"https://api.github.com/repos/jhutchins/redis/assignees{/user}","branches_url":"https://api.github.com/repos/jhutchins/redis/branches{/branch}","tags_url":"https://api.github.com/repos/jhutchins/redis/tags","blobs_url":"https://api.github.com/repos/jhutchins/redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhutchins/redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhutchins/redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhutchins/redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhutchins/redis/statuses/{sha}","languages_url":"https://api.github.com/repos/jhutchins/redis/languages","stargazers_url":"https://api.github.com/repos/jhutchins/redis/stargazers","contributors_url":"https://api.github.com/repos/jhutchins/redis/contributors","subscribers_url":"https://api.github.com/repos/jhutchins/redis/subscribers","subscription_url":"https://api.github.com/repos/jhutchins/redis/subscription","commits_url":"https://api.github.com/repos/jhutchins/redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhutchins/redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhutchins/redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhutchins/redis/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhutchins/redis/contents/{+path}","compare_url":"https://api.github.com/repos/jhutchins/redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhutchins/redis/merges","archive_url":"https://api.github.com/repos/jhutchins/redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhutchins/redis/downloads","issues_url":"https://api.github.com/repos/jhutchins/redis/issues{/number}","pulls_url":"https://api.github.com/repos/jhutchins/redis/pulls{/number}","milestones_url":"https://api.github.com/repos/jhutchins/redis/milestones{/number}","notifications_url":"https://api.github.com/repos/jhutchins/redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhutchins/redis/labels{/name}","releases_url":"https://api.github.com/repos/jhutchins/redis/releases{/id}","deployments_url":"https://api.github.com/repos/jhutchins/redis/deployments","created_at":"2018-05-11T21:57:37Z","updated_at":"2018-05-11T21:57:41Z","pushed_at":"2018-05-14T19:44:23Z","git_url":"git://github.com/jhutchins/redis.git","ssh_url":"git@github.com:jhutchins/redis.git","clone_url":"https://github.com/jhutchins/redis.git","svn_url":"https://github.com/jhutchins/redis","homepage":"http://godoc.org/github.com/go-redis/redis","size":1780,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"go-redis:master","ref":"master","sha":"bc49453a24e10f8d1b15568f323ca16c67bb3cf5","user":{"login":"go-redis","id":7314137,"avatar_url":"https://avatars0.githubusercontent.com/u/7314137?v=4","gravatar_id":"","url":"https://api.github.com/users/go-redis","html_url":"https://github.com/go-redis","followers_url":"https://api.github.com/users/go-redis/followers","following_url":"https://api.github.com/users/go-redis/following{/other_user}","gists_url":"https://api.github.com/users/go-redis/gists{/gist_id}","starred_url":"https://api.github.com/users/go-redis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-redis/subscriptions","organizations_url":"https://api.github.com/users/go-redis/orgs","repos_url":"https://api.github.com/users/go-redis/repos","events_url":"https://api.github.com/users/go-redis/events{/privacy}","received_events_url":"https://api.github.com/users/go-redis/received_events","type":"Organization","site_admin":false},"repo":{"id":5179099,"name":"redis","full_name":"go-redis/redis","owner":{"login":"go-redis","id":7314137,"avatar_url":"https://avatars0.githubusercontent.com/u/7314137?v=4","gravatar_id":"","url":"https://api.github.com/users/go-redis","html_url":"https://github.com/go-redis","followers_url":"https://api.github.com/users/go-redis/followers","following_url":"https://api.github.com/users/go-redis/following{/other_user}","gists_url":"https://api.github.com/users/go-redis/gists{/gist_id}","starred_url":"https://api.github.com/users/go-redis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-redis/subscriptions","organizations_url":"https://api.github.com/users/go-redis/orgs","repos_url":"https://api.github.com/users/go-redis/repos","events_url":"https://api.github.com/users/go-redis/events{/privacy}","received_events_url":"https://api.github.com/users/go-redis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-redis/redis","description":"Type-safe Redis client for Golang","fork":false,"url":"https://api.github.com/repos/go-redis/redis","forks_url":"https://api.github.com/repos/go-redis/redis/forks","keys_url":"https://api.github.com/repos/go-redis/redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-redis/redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-redis/redis/teams","hooks_url":"https://api.github.com/repos/go-redis/redis/hooks","issue_events_url":"https://api.github.com/repos/go-redis/redis/issues/events{/number}","events_url":"https://api.github.com/repos/go-redis/redis/events","assignees_url":"https://api.github.com/repos/go-redis/redis/assignees{/user}","branches_url":"https://api.github.com/repos/go-redis/redis/branches{/branch}","tags_url":"https://api.github.com/repos/go-redis/redis/tags","blobs_url":"https://api.github.com/repos/go-redis/redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-redis/redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-redis/redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-redis/redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-redis/redis/statuses/{sha}","languages_url":"https://api.github.com/repos/go-redis/redis/languages","stargazers_url":"https://api.github.com/repos/go-redis/redis/stargazers","contributors_url":"https://api.github.com/repos/go-redis/redis/contributors","subscribers_url":"https://api.github.com/repos/go-redis/redis/subscribers","subscription_url":"https://api.github.com/repos/go-redis/redis/subscription","commits_url":"https://api.github.com/repos/go-redis/redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-redis/redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-redis/redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-redis/redis/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-redis/redis/contents/{+path}","compare_url":"https://api.github.com/repos/go-redis/redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-redis/redis/merges","archive_url":"https://api.github.com/repos/go-redis/redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-redis/redis/downloads","issues_url":"https://api.github.com/repos/go-redis/redis/issues{/number}","pulls_url":"https://api.github.com/repos/go-redis/redis/pulls{/number}","milestones_url":"https://api.github.com/repos/go-redis/redis/milestones{/number}","notifications_url":"https://api.github.com/repos/go-redis/redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-redis/redis/labels{/name}","releases_url":"https://api.github.com/repos/go-redis/redis/releases{/id}","deployments_url":"https://api.github.com/repos/go-redis/redis/deployments","created_at":"2012-07-25T13:01:39Z","updated_at":"2018-05-21T13:32:36Z","pushed_at":"2018-05-21T14:18:30Z","git_url":"git://github.com/go-redis/redis.git","ssh_url":"git@github.com:go-redis/redis.git","clone_url":"https://github.com/go-redis/redis.git","svn_url":"https://github.com/go-redis/redis","homepage":"http://godoc.org/github.com/go-redis/redis","size":1758,"stargazers_count":3408,"watchers_count":3408,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":496,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":496,"open_issues":18,"watchers":3408,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-redis/redis/pulls/763"},"html":{"href":"https://github.com/go-redis/redis/pull/763"},"issue":{"href":"https://api.github.com/repos/go-redis/redis/issues/763"},"comments":{"href":"https://api.github.com/repos/go-redis/redis/issues/763/comments"},"review_comments":{"href":"https://api.github.com/repos/go-redis/redis/pulls/763/comments"},"review_comment":{"href":"https://api.github.com/repos/go-redis/redis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-redis/redis/pulls/763/commits"},"statuses":{"href":"https://api.github.com/repos/go-redis/redis/statuses/366704c1a7d72387691be49c58f267706a5c6d2f"}},"author_association":"NONE","merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":7,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":5,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"vmihailenco"}}