{"action":"created","issue":{"url":"https://api.github.com/repos/jfinal/jfinal/issues/73","labels_url":"https://api.github.com/repos/jfinal/jfinal/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/jfinal/jfinal/issues/73/comments","events_url":"https://api.github.com/repos/jfinal/jfinal/issues/73/events","html_url":"https://github.com/jfinal/jfinal/pull/73","id":106384460,"number":73,"title":"RedisSentinel集群插件,复用Cache","user":{"login":"yangyunfei","id":11641057,"avatar_url":"https://avatars.githubusercontent.com/u/11641057?v=3","gravatar_id":"","url":"https://api.github.com/users/yangyunfei","html_url":"https://github.com/yangyunfei","followers_url":"https://api.github.com/users/yangyunfei/followers","following_url":"https://api.github.com/users/yangyunfei/following{/other_user}","gists_url":"https://api.github.com/users/yangyunfei/gists{/gist_id}","starred_url":"https://api.github.com/users/yangyunfei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangyunfei/subscriptions","organizations_url":"https://api.github.com/users/yangyunfei/orgs","repos_url":"https://api.github.com/users/yangyunfei/repos","events_url":"https://api.github.com/users/yangyunfei/events{/privacy}","received_events_url":"https://api.github.com/users/yangyunfei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-14T16:51:22Z","updated_at":"2015-09-15T07:02:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jfinal/jfinal/pulls/73","html_url":"https://github.com/jfinal/jfinal/pull/73","diff_url":"https://github.com/jfinal/jfinal/pull/73.diff","patch_url":"https://github.com/jfinal/jfinal/pull/73.patch"},"body":"项目用到了RedisSentinel集群,把代码稍微改动了下\r\n示例:\r\n\t\tSet&lt;HostAndPort&gt; sentinels = new HashSet&lt;HostAndPort&gt;();\r\n\t\tHostAndPort hostAndP = new HostAndPort(\"172.0.0.1\", 26379);\r\n\t\tsentinels.add(hostAndP);\r\n\t\tRedisSentinelPlugin redisSentinelPlugin = new RedisSentinelPlugin(\"redisSentinelCache\", \"mymaster\",sentinels);\r\n\t\tredisSentinelPlugin.setDatabase(1);\r\n\t\tme.add(redisSentinelPlugin);"},"comment":{"url":"https://api.github.com/repos/jfinal/jfinal/issues/comments/140299718","html_url":"https://github.com/jfinal/jfinal/pull/73#issuecomment-140299718","issue_url":"https://api.github.com/repos/jfinal/jfinal/issues/73","id":140299718,"user":{"login":"yangyunfei","id":11641057,"avatar_url":"https://avatars.githubusercontent.com/u/11641057?v=3","gravatar_id":"","url":"https://api.github.com/users/yangyunfei","html_url":"https://github.com/yangyunfei","followers_url":"https://api.github.com/users/yangyunfei/followers","following_url":"https://api.github.com/users/yangyunfei/following{/other_user}","gists_url":"https://api.github.com/users/yangyunfei/gists{/gist_id}","starred_url":"https://api.github.com/users/yangyunfei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangyunfei/subscriptions","organizations_url":"https://api.github.com/users/yangyunfei/orgs","repos_url":"https://api.github.com/users/yangyunfei/repos","events_url":"https://api.github.com/users/yangyunfei/events{/privacy}","received_events_url":"https://api.github.com/users/yangyunfei/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T07:02:24Z","updated_at":"2015-09-15T07:02:24Z","body":"对原有代码没有影响,\r\n因为JedisSentinelPool与JedisPool 没有继承关系,只有向上转型才能容纳,\r\n刚看了使用JedisPoolAbstract接受更好"}}