Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8e9e496

Browse filesBrowse files
committed
minor #9197 Documented the feature to pass options in the memcached DSN (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Documented the feature to pass options in the memcached DSN This fixes #8467. Commits ------- c3685c7 Documented the feature to pass options in the memcached DSN
2 parents 925121c + c3685c7 commit 8e9e496
Copy full SHA for 8e9e496

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎components/cache/adapters/memcached_adapter.rst

Copy file name to clipboardExpand all lines: components/cache/adapters/memcached_adapter.rst
+7Lines changed: 7 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.