{"action":"created","issue":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/418","labels_url":"https://api.github.com/repos/xetorthio/jedis/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/xetorthio/jedis/issues/418/comments","events_url":"https://api.github.com/repos/xetorthio/jedis/issues/418/events","html_url":"https://github.com/xetorthio/jedis/issues/418","id":13373939,"number":418,"title":"How to select the database index for a pool?","user":{"login":"kaadams4","id":4039973,"avatar_url":"https://avatars.githubusercontent.com/u/4039973?v=3","gravatar_id":"","url":"https://api.github.com/users/kaadams4","html_url":"https://github.com/kaadams4","followers_url":"https://api.github.com/users/kaadams4/followers","following_url":"https://api.github.com/users/kaadams4/following{/other_user}","gists_url":"https://api.github.com/users/kaadams4/gists{/gist_id}","starred_url":"https://api.github.com/users/kaadams4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaadams4/subscriptions","organizations_url":"https://api.github.com/users/kaadams4/orgs","repos_url":"https://api.github.com/users/kaadams4/repos","events_url":"https://api.github.com/users/kaadams4/events{/privacy}","received_events_url":"https://api.github.com/users/kaadams4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-04-18T21:29:54Z","updated_at":"2015-03-05T04:06:50Z","closed_at":"2015-03-05T04:06:50Z","body":"I have seen a few questions like this but not in quite a while and was wondering if anything was done.  I'm creating a JedisPool and would like to select the db index.  Here is what I have:\r\n\r\n    JedisPoolConfig config = new JedisPoolConfig();\r\n    config.setMaxActive(env.getRedisPoolMaxActive());\r\n    ......\r\n    redisServerPool = new JedisPool(config, host, port);\r\n\r\nI would like to be able to either set the database as a config value:\r\nconfig.setDatabaseIndex(2);\r\n\r\nor pass the database in:\r\nnew JedisPool(config, host, port, db);\r\n\r\nor select it after the fact:\r\nredisServerPool = new JedisPool(config, host, port);\r\nredisServerPool.select(db);\r\n\r\nAre any of these, or something like them, possible?"},"comment":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/comments/77303123","html_url":"https://github.com/xetorthio/jedis/issues/418#issuecomment-77303123","issue_url":"https://api.github.com/repos/xetorthio/jedis/issues/418","id":77303123,"user":{"login":"HeartSaVioR","id":1317309,"avatar_url":"https://avatars.githubusercontent.com/u/1317309?v=3","gravatar_id":"","url":"https://api.github.com/users/HeartSaVioR","html_url":"https://github.com/HeartSaVioR","followers_url":"https://api.github.com/users/HeartSaVioR/followers","following_url":"https://api.github.com/users/HeartSaVioR/following{/other_user}","gists_url":"https://api.github.com/users/HeartSaVioR/gists{/gist_id}","starred_url":"https://api.github.com/users/HeartSaVioR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeartSaVioR/subscriptions","organizations_url":"https://api.github.com/users/HeartSaVioR/orgs","repos_url":"https://api.github.com/users/HeartSaVioR/repos","events_url":"https://api.github.com/users/HeartSaVioR/events{/privacy}","received_events_url":"https://api.github.com/users/HeartSaVioR/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T04:06:50Z","updated_at":"2015-03-05T04:06:50Z","body":"Currently you can provide password to JedisPool's constructor.\r\nSo this issue is no longer valid. Closing."}}