You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/class-memcached-engine.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,30 +5,44 @@ This class uses the Memcached as the cache engine.
5
5
## Defining the Servers
6
6
7
7
The constructor expects an array of servers.
8
-
Each server is an item in the array with the following format:
8
+
Each server can be provided in one of the following formats:
9
9
10
10
```php
11
11
$servers = [
12
12
'localhost:11211',
13
-
]
13
+
['host.example', 11211],
14
+
];
15
+
```
16
+
17
+
You can also pass Memcached client options (no need to pass a Memcached instance). Options can be provided as an associative array where the keys are Memcached option constants or their string names:
0 commit comments