From c3685c783710c95bcd21884395e503955357501b Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 2 Feb 2018 17:57:50 +0100 Subject: [PATCH] Documented the feature to pass options in the memcached DSN --- components/cache/adapters/memcached_adapter.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/cache/adapters/memcached_adapter.rst b/components/cache/adapters/memcached_adapter.rst index 413db7d89fa..65bd5360cf3 100644 --- a/components/cache/adapters/memcached_adapter.rst +++ b/components/cache/adapters/memcached_adapter.rst @@ -55,6 +55,9 @@ helper method allows creating and configuring a `Memcached`_ class instance usin // pass a single DSN string to register a single server with the client $client = MemcachedAdapter::createConnection( 'memcached://localhost' + // the DSN can include config options (pass them as a query string): + // 'memcached://localhost:11222?retry_timeout=10' + // 'memcached://localhost:11222?socket_recv_size=1&socket_send_size=2' ); // 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 // etc... )); +.. versionadded:: 3.4 + The feature to pass configuration options in the memcached DSN was + introduced in Symfony 3.4. + The `Data Source Name (DSN)`_ for this adapter must use the following format: .. code-block:: text