{"action":"created","issue":{"url":"https://api.github.com/repos/cayasso/cacheman-mongo/issues/14","repository_url":"https://api.github.com/repos/cayasso/cacheman-mongo","labels_url":"https://api.github.com/repos/cayasso/cacheman-mongo/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/cayasso/cacheman-mongo/issues/14/comments","events_url":"https://api.github.com/repos/cayasso/cacheman-mongo/issues/14/events","html_url":"https://github.com/cayasso/cacheman-mongo/issues/14","id":187156233,"number":14,"title":"How to configure for a mongo replication set","user":{"login":"codeuniquely","id":1037719,"avatar_url":"https://avatars.githubusercontent.com/u/1037719?v=3","gravatar_id":"","url":"https://api.github.com/users/codeuniquely","html_url":"https://github.com/codeuniquely","followers_url":"https://api.github.com/users/codeuniquely/followers","following_url":"https://api.github.com/users/codeuniquely/following{/other_user}","gists_url":"https://api.github.com/users/codeuniquely/gists{/gist_id}","starred_url":"https://api.github.com/users/codeuniquely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeuniquely/subscriptions","organizations_url":"https://api.github.com/users/codeuniquely/orgs","repos_url":"https://api.github.com/users/codeuniquely/repos","events_url":"https://api.github.com/users/codeuniquely/events{/privacy}","received_events_url":"https://api.github.com/users/codeuniquely/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-03T18:42:58Z","updated_at":"2016-11-17T13:38:09Z","closed_at":null,"body":"when configured with more than one host\r\n\r\nsuch as when passing this type of configuration\r\n\r\n```\r\n{\r\n    host: 'db-host-01, db-host-02, db-host-03',\r\n    username: 'db-user',\r\n    password: 'db-pasword',\r\n    database: 'db',\r\n    collection: 'cached',\r\n    compression: false\r\n}\r\n```\r\n\r\nAny call to set results in a error being raised with this message.\r\n\r\n    \"missing delimiting slash between hosts and options:\"\r\n\r\n\r\nThe configuration is identical to the normal mongo configuration (which works) except for the mongo db has an additional option in the config\r\n\r\n```\r\n{\r\n    replica: 'replset-name'\r\n}\r\n```\r\n\r\nand when there is more than one host the connection string has to be formed like this:\r\n\r\n**Expected format - according to Mongo Docs**\r\n```\r\nmongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]\r\n```\r\n\r\nThe connection string right now comes out with the wrong format (just a simple concatenation) of the properties and hence the error \r\n\r\n**wrong format**\r\n\r\n```\r\nmongodb://[username:password@]db-host-01, db-host-02, db-host-03[:port1][/[database][?options]]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cayasso/cacheman-mongo/issues/comments/261248194","html_url":"https://github.com/cayasso/cacheman-mongo/issues/14#issuecomment-261248194","issue_url":"https://api.github.com/repos/cayasso/cacheman-mongo/issues/14","id":261248194,"user":{"login":"codeuniquely","id":1037719,"avatar_url":"https://avatars.githubusercontent.com/u/1037719?v=3","gravatar_id":"","url":"https://api.github.com/users/codeuniquely","html_url":"https://github.com/codeuniquely","followers_url":"https://api.github.com/users/codeuniquely/followers","following_url":"https://api.github.com/users/codeuniquely/following{/other_user}","gists_url":"https://api.github.com/users/codeuniquely/gists{/gist_id}","starred_url":"https://api.github.com/users/codeuniquely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeuniquely/subscriptions","organizations_url":"https://api.github.com/users/codeuniquely/orgs","repos_url":"https://api.github.com/users/codeuniquely/repos","events_url":"https://api.github.com/users/codeuniquely/events{/privacy}","received_events_url":"https://api.github.com/users/codeuniquely/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T13:38:09Z","updated_at":"2016-11-17T13:38:09Z","body":"any thoughts on this ?"}}
{"actor":{"display_login":"codeuniquely"}}