mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Correct Memcached config in example
Unlike Libmemcached, the Memcached backend server config must be nested inside an array() with a single key 'servers' - otherwise the default host of 127.0.0.1 is used. array( 'servers' => array( 'host' => 'localhost', 'port' => 11211, 'persistent' => true, 'weight' => 1, 'timeout' => 1, 'retry_interval' => 15, 'status' => true, 'failure_callback' => '' ) )
This commit is contained in:
parent
0012bc68c4
commit
d6cb2419b8
@ -117,14 +117,16 @@ To use this backend, you need a memcached daemon and the memcache PECL extension
|
|||||||
'primary_memcached',
|
'primary_memcached',
|
||||||
'Memcached',
|
'Memcached',
|
||||||
array(
|
array(
|
||||||
'host' => 'localhost',
|
'servers' => array(
|
||||||
'port' => 11211,
|
'host' => 'localhost',
|
||||||
'persistent' => true,
|
'port' => 11211,
|
||||||
'weight' => 1,
|
'persistent' => true,
|
||||||
'timeout' => 5,
|
'weight' => 1,
|
||||||
'retry_interval' => 15,
|
'timeout' => 5,
|
||||||
'status' => true,
|
'retry_interval' => 15,
|
||||||
'failure_callback' => ''
|
'status' => true,
|
||||||
|
'failure_callback' => ''
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
SS_Cache::pick_backend('primary_memcached', 'any', 10);
|
SS_Cache::pick_backend('primary_memcached', 'any', 10);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user