{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/97218525","pull_request_review_id":17824808,"id":97218525,"diff_hunk":"@@ -0,0 +1,127 @@\n+.. index::\n+    single: Cache Pool\n+    single: Redis Cache\n+\n+Redis Cache Adapter\n+===================\n+\n+This adapter stores the values in-memory using  one (or more) `Redis server`_ instances.\n+Unlike the ACPu adapter, and similarly to the Memcached adapter, it is not limited to the current\n+server's shared memory; you can store contents independent of your PHP environment.\n+The ability to utilize a cluster of servers to provide redundancy and/or fail-over is also\n+available.\n+\n+.. caution::\n+\n+    **Requirements:** At least one `Redis server`_ must be installed and running to use this\n+    adapter. Additionally, this adapter requires a compatible extension or library that implements\n+    ``\\Redis``, ``\\RedisArray``, ``RedisCluster``, or ``\\Predis``.\n+\n+\n+This adapter expects a `Redis`_, `RedisArray`_, `RedisCluster`_, or `Predis`_ instance to be\n+passed as the first parameter. A namespace and default cache lifetime can optionally be passed\n+as the second and third parameters::\n+\n+    use Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\n+\n+    $cache = new RedisAdapter(\n+\n+        // the object that stores a valid connection to your Redis system\n+        \\Redis $redisConnection,\n+\n+        // the string prefixed to the keys of the items stored in this cache\n+        $namespace = '',\n+\n+        // the default lifetime (in seconds) for cache items that do not define their\n+        // own lifetime, with a value 0 causing items to be stored indefinitely (i.e.\n+        // until MemcachedAdapter::clear() is invoked or the server(s) are purged)\n+        $defaultLifetime = 0\n+    );\n+\n+Configure the Connection\n+------------------------\n+\n+The :method:`Symfony\\\\Component\\\\Cache\\\\Adapter\\\\RedisAdapter::createConnection`\n+helper method allows creating and configuring the Redis client class instance using a\n+`Data Source Name (DSN)`_ or an array of DSNs::\n+\n+    use Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\n+\n+    // pass a single DSN string to register a single server with the client\n+    $client = RedisAdapter::createConnection(\n+        'redis://localhost'\n+    );\n+\n+    // pass an array of DSN strings to register multiple servers with the client\n+    $client = RedisAdapter::createConnection(array(\n+        'redis://10.0.0.100',\n+        'redis://10.0.0.101',\n+        'redis://10.0.0.102',\n+        // etc...\n+    ));\n+\n+The DSN can specify either an IP/host (and an optional port) or a socket path, as well as a user\n+and password (for SASL authentication) and a weight (for multiple server prioritization).\n+\n+.. note::\n+\n+    A `Data Source Name (DSN)`_ for this adapter must use the following format.\n+\n+    .. code-block:: text\n+\n+        redis://[user:pass@][ip|host|socket[:port]][/db-index]\n+\n+\n+Below are common examples of valid DSNs showing a combination of available values::\n+\n+    use Symfony\\Component\\Cache\\Adapter\\RedisAdapter;\n+\n+    $client = RedisAdapter::createConnection(array(","path":"components/cache/adapters/redis_adapter.rst","position":79,"original_position":79,"commit_id":"fa0bb2f635a4bdf82be7e33bdd1ac46eb3d47342","original_commit_id":"fa0bb2f635a4bdf82be7e33bdd1ac46eb3d47342","user":{"login":"nicolas-grekas","id":243674,"avatar_url":"https://avatars.githubusercontent.com/u/243674?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-grekas","html_url":"https://github.com/nicolas-grekas","followers_url":"https://api.github.com/users/nicolas-grekas/followers","following_url":"https://api.github.com/users/nicolas-grekas/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-grekas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-grekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-grekas/subscriptions","organizations_url":"https://api.github.com/users/nicolas-grekas/orgs","repos_url":"https://api.github.com/users/nicolas-grekas/repos","events_url":"https://api.github.com/users/nicolas-grekas/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-grekas/received_events","type":"User","site_admin":false},"body":"\"array\" variant not implemented","created_at":"2017-01-22T10:09:36Z","updated_at":"2017-01-22T10:12:14Z","html_url":"https://github.com/symfony/symfony-docs/pull/7265#discussion_r97218525","pull_request_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/7265","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/97218525"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/7265#discussion_r97218525"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/7265"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/7265","id":98078226,"html_url":"https://github.com/symfony/symfony-docs/pull/7265","diff_url":"https://github.com/symfony/symfony-docs/pull/7265.diff","patch_url":"https://github.com/symfony/symfony-docs/pull/7265.patch","issue_url":"https://api.github.com/repos/symfony/symfony-docs/issues/7265","number":7265,"state":"open","locked":false,"title":"[Cache] Memcached Adapter Docs and Cache Pool Docs Refactoring","user":{"login":"robfrawley","id":3967713,"avatar_url":"https://avatars.githubusercontent.com/u/3967713?v=3","gravatar_id":"","url":"https://api.github.com/users/robfrawley","html_url":"https://github.com/robfrawley","followers_url":"https://api.github.com/users/robfrawley/followers","following_url":"https://api.github.com/users/robfrawley/following{/other_user}","gists_url":"https://api.github.com/users/robfrawley/gists{/gist_id}","starred_url":"https://api.github.com/users/robfrawley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfrawley/subscriptions","organizations_url":"https://api.github.com/users/robfrawley/orgs","repos_url":"https://api.github.com/users/robfrawley/repos","events_url":"https://api.github.com/users/robfrawley/events{/privacy}","received_events_url":"https://api.github.com/users/robfrawley/received_events","type":"User","site_admin":false},"body":"Documentation for symfony/symfony#20863 and symfony/symfony#20858. PR symfony/symfony#20863 is still being written/finalized, so this is a WIP following that PR at this time. Resolves #7256.","created_at":"2016-12-15T02:53:39Z","updated_at":"2017-01-22T10:12:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"085fa3b5330a62f5e9e054d2fac4c4cb4937c90b","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/symfony/symfony-docs/milestones/13","html_url":"https://github.com/symfony/symfony-docs/milestone/13","labels_url":"https://api.github.com/repos/symfony/symfony-docs/milestones/13/labels","id":2118286,"number":13,"title":"3.3","description":"","creator":{"login":"xabbuh","id":1957048,"avatar_url":"https://avatars.githubusercontent.com/u/1957048?v=3","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":7,"state":"open","created_at":"2016-11-07T08:36:16Z","updated_at":"2017-01-17T19:40:19Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/7265/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/7265/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/issues/7265/comments","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/fa0bb2f635a4bdf82be7e33bdd1ac46eb3d47342","head":{"label":"src-run:feature-advanced-memcached-cache-pool","ref":"feature-advanced-memcached-cache-pool","sha":"fa0bb2f635a4bdf82be7e33bdd1ac46eb3d47342","user":{"login":"src-run","id":13397030,"avatar_url":"https://avatars.githubusercontent.com/u/13397030?v=3","gravatar_id":"","url":"https://api.github.com/users/src-run","html_url":"https://github.com/src-run","followers_url":"https://api.github.com/users/src-run/followers","following_url":"https://api.github.com/users/src-run/following{/other_user}","gists_url":"https://api.github.com/users/src-run/gists{/gist_id}","starred_url":"https://api.github.com/users/src-run/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-run/subscriptions","organizations_url":"https://api.github.com/users/src-run/orgs","repos_url":"https://api.github.com/users/src-run/repos","events_url":"https://api.github.com/users/src-run/events{/privacy}","received_events_url":"https://api.github.com/users/src-run/received_events","type":"Organization","site_admin":false},"repo":{"id":76517698,"name":"symfony-docs","full_name":"src-run/symfony-docs","owner":{"login":"src-run","id":13397030,"avatar_url":"https://avatars.githubusercontent.com/u/13397030?v=3","gravatar_id":"","url":"https://api.github.com/users/src-run","html_url":"https://github.com/src-run","followers_url":"https://api.github.com/users/src-run/followers","following_url":"https://api.github.com/users/src-run/following{/other_user}","gists_url":"https://api.github.com/users/src-run/gists{/gist_id}","starred_url":"https://api.github.com/users/src-run/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-run/subscriptions","organizations_url":"https://api.github.com/users/src-run/orgs","repos_url":"https://api.github.com/users/src-run/repos","events_url":"https://api.github.com/users/src-run/events{/privacy}","received_events_url":"https://api.github.com/users/src-run/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/src-run/symfony-docs","description":"The Symfony documentation","fork":true,"url":"https://api.github.com/repos/src-run/symfony-docs","forks_url":"https://api.github.com/repos/src-run/symfony-docs/forks","keys_url":"https://api.github.com/repos/src-run/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/src-run/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/src-run/symfony-docs/teams","hooks_url":"https://api.github.com/repos/src-run/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/src-run/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/src-run/symfony-docs/events","assignees_url":"https://api.github.com/repos/src-run/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/src-run/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/src-run/symfony-docs/tags","blobs_url":"https://api.github.com/repos/src-run/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/src-run/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/src-run/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/src-run/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/src-run/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/src-run/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/src-run/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/src-run/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/src-run/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/src-run/symfony-docs/subscription","commits_url":"https://api.github.com/repos/src-run/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/src-run/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/src-run/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/src-run/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/src-run/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/src-run/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/src-run/symfony-docs/merges","archive_url":"https://api.github.com/repos/src-run/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/src-run/symfony-docs/downloads","issues_url":"https://api.github.com/repos/src-run/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/src-run/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/src-run/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/src-run/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/src-run/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/src-run/symfony-docs/releases{/id}","deployments_url":"https://api.github.com/repos/src-run/symfony-docs/deployments","created_at":"2016-12-15T02:48:28Z","updated_at":"2016-12-15T02:48:33Z","pushed_at":"2017-01-19T16:25:29Z","git_url":"git://github.com/src-run/symfony-docs.git","ssh_url":"git@github.com:src-run/symfony-docs.git","clone_url":"https://github.com/src-run/symfony-docs.git","svn_url":"https://github.com/src-run/symfony-docs","homepage":"http://symfony.com/doc","size":39610,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"symfony:master","ref":"master","sha":"c45a7f2db0abf10ecc349654dc0c4d485ab684f1","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":521583,"name":"symfony-docs","full_name":"symfony/symfony-docs","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony-docs","description":"The Symfony documentation","fork":false,"url":"https://api.github.com/repos/symfony/symfony-docs","forks_url":"https://api.github.com/repos/symfony/symfony-docs/forks","keys_url":"https://api.github.com/repos/symfony/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony-docs/teams","hooks_url":"https://api.github.com/repos/symfony/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony-docs/events","assignees_url":"https://api.github.com/repos/symfony/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony-docs/tags","blobs_url":"https://api.github.com/repos/symfony/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony-docs/subscription","commits_url":"https://api.github.com/repos/symfony/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony-docs/merges","archive_url":"https://api.github.com/repos/symfony/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony-docs/downloads","issues_url":"https://api.github.com/repos/symfony/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony-docs/releases{/id}","deployments_url":"https://api.github.com/repos/symfony/symfony-docs/deployments","created_at":"2010-02-17T08:43:51Z","updated_at":"2017-01-22T05:01:06Z","pushed_at":"2017-01-22T08:55:06Z","git_url":"git://github.com/symfony/symfony-docs.git","ssh_url":"git@github.com:symfony/symfony-docs.git","clone_url":"https://github.com/symfony/symfony-docs.git","svn_url":"https://github.com/symfony/symfony-docs","homepage":"http://symfony.com/doc","size":40792,"stargazers_count":1189,"watchers_count":1189,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":2758,"mirror_url":null,"open_issues_count":407,"forks":2758,"open_issues":407,"watchers":1189,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/7265"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/7265"},"issue":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/7265"},"comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/7265/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/7265/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/7265/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony-docs/statuses/fa0bb2f635a4bdf82be7e33bdd1ac46eb3d47342"}}}}
{"actor":{"display_login":"nicolas-grekas"}}