Skip to content

Commit c3685c7

Browse files
committed
Documented the feature to pass options in the memcached DSN
1 parent 925121c commit c3685c7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/cache/adapters/memcached_adapter.rst

+7
Original file line numberDiff line numberDiff 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+
6875
The `Data Source Name (DSN)`_ for this adapter must use the following format:
6976

7077
.. code-block:: text

0 commit comments

Comments
 (0)