{"action":"created","issue":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/658","labels_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/658/comments","events_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/658/events","html_url":"https://github.com/NodeRedis/node_redis/pull/658","id":42594651,"number":658,"title":"added URL support to createClient","user":{"login":"kuwabarahiroshi","id":816749,"avatar_url":"https://avatars.githubusercontent.com/u/816749?v=3","gravatar_id":"","url":"https://api.github.com/users/kuwabarahiroshi","html_url":"https://github.com/kuwabarahiroshi","followers_url":"https://api.github.com/users/kuwabarahiroshi/followers","following_url":"https://api.github.com/users/kuwabarahiroshi/following{/other_user}","gists_url":"https://api.github.com/users/kuwabarahiroshi/gists{/gist_id}","starred_url":"https://api.github.com/users/kuwabarahiroshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuwabarahiroshi/subscriptions","organizations_url":"https://api.github.com/users/kuwabarahiroshi/orgs","repos_url":"https://api.github.com/users/kuwabarahiroshi/repos","events_url":"https://api.github.com/users/kuwabarahiroshi/events{/privacy}","received_events_url":"https://api.github.com/users/kuwabarahiroshi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2014-09-12T04:06:18Z","updated_at":"2015-07-13T10:51:50Z","closed_at":"2015-07-12T02:32:45Z","pull_request":{"url":"https://api.github.com/repos/NodeRedis/node_redis/pulls/658","html_url":"https://github.com/NodeRedis/node_redis/pull/658","diff_url":"https://github.com/NodeRedis/node_redis/pull/658.diff","patch_url":"https://github.com/NodeRedis/node_redis/pull/658.patch"},"body":"Hi,\r\n\r\nI thought it would be useful if we could specify redis server with URL string, like below:\r\n\r\n```javascript\r\n// specify remote redis service.\r\nrequire('redis').createClient('redis://user:password@redis-service.com:6379/');\r\n\r\n// or we can also specify localhost.\r\nrequire('redis').createClient('//localhost:6379');\r\n```\r\n\r\nThis overloaded interface would be useful especially for node apps hosted on heroku, on which redis add-ons is usually provided via ENV variable.\r\n\r\n```javascript\r\nrequire('redis').createClient(process.env.REDISTOGO_URL);\r\n```"},"comment":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/comments/120889404","html_url":"https://github.com/NodeRedis/node_redis/pull/658#issuecomment-120889404","issue_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/658","id":120889404,"user":{"login":"oncletom","id":138627,"avatar_url":"https://avatars.githubusercontent.com/u/138627?v=3","gravatar_id":"","url":"https://api.github.com/users/oncletom","html_url":"https://github.com/oncletom","followers_url":"https://api.github.com/users/oncletom/followers","following_url":"https://api.github.com/users/oncletom/following{/other_user}","gists_url":"https://api.github.com/users/oncletom/gists{/gist_id}","starred_url":"https://api.github.com/users/oncletom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oncletom/subscriptions","organizations_url":"https://api.github.com/users/oncletom/orgs","repos_url":"https://api.github.com/users/oncletom/repos","events_url":"https://api.github.com/users/oncletom/events{/privacy}","received_events_url":"https://api.github.com/users/oncletom/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T10:51:50Z","updated_at":"2015-07-13T10:51:50Z","body":"\\o/ :sparkles: thank you :-)"}}