File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
components/cache/adapters Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ helper method allows creating and configuring a `Memcached`_ class instance usin
5555 // pass a single DSN string to register a single server with the client
5656 $client = MemcachedAdapter::createConnection(
5757 'memcached://localhost'
58+ // the DSN can include config options (pass them as a query string):
59+ // 'memcached://localhost:11222?retry_timeout=10'
60+ // 'memcached://localhost:11222?socket_recv_size=1&socket_send_size=2'
5861 );
5962
6063 // pass an array of DSN strings to register multiple servers with the client
@@ -65,6 +68,10 @@ helper method allows creating and configuring a `Memcached`_ class instance usin
6568 // etc...
6669 ));
6770
71+ .. versionadded :: 3.4
72+ The feature to pass configuration options in the memcached DSN was
73+ introduced in Symfony 3.4.
74+
6875The `Data Source Name (DSN) `_ for this adapter must use the following format:
6976
7077.. code-block :: text
You can’t perform that action at this time.
0 commit comments