We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4b9666 commit 1ae951bCopy full SHA for 1ae951b
components/cache/adapters/memcached_adapter.rst
@@ -64,6 +64,16 @@ helper method allows creating and configuring a `Memcached`_ class instance usin
64
// etc...
65
]);
66
67
+ // a single DSN can define multiple servers using the following syntax:
68
+ // host[hostname-or-IP:port] (where port is optional). Sockets must include a trailing ':'
69
+ $client = MemcachedAdapter::createConnection(
70
+ 'memcached:?host[localhost]&host[localhost:12345]&host[/some/memcached.sock:]=3'
71
+ );
72
+
73
+.. versionadded:: 4.2
74
75
+ The option to define multiple servers in a single DSN was introduced in Symfony 4.2.
76
77
The `Data Source Name (DSN)`_ for this adapter must use the following format:
78
79
.. code-block:: text
0 commit comments