File tree 1 file changed +7
-0
lines changed
components/cache/adapters
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
55
55
// pass a single DSN string to register a single server with the client
56
56
$client = MemcachedAdapter::createConnection(
57
57
'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'
58
61
);
59
62
60
63
// 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
65
68
// etc...
66
69
));
67
70
71
+ .. versionadded :: 3.4
72
+ The feature to pass configuration options in the memcached DSN was
73
+ introduced in Symfony 3.4.
74
+
68
75
The `Data Source Name (DSN) `_ for this adapter must use the following format:
69
76
70
77
.. code-block :: text
You can’t perform that action at this time.
0 commit comments