25 if (!$config->memcache || empty($config->memcache_servers)) {
30 foreach ($config->memcache_servers as $server) {
32 'host' =>
'127.0.0.1',
35 'saslPassword' =>
false,
38 $servers[] = array_merge($server_config, $server);
41 $opt_prefix = (string) $config->memcache_namespace_prefix;
42 $opt_prefix .= $namespace;
46 'useStaticItemCaching' =>
true,
47 'itemDetailedDate' =>
true,
48 'optPrefix' => $opt_prefix,
static fromElggConfig(string $namespace,\Elgg\Config $config)
Factory to return a config object to be used when starting a driver.
Configuration for memcache(d) fastcache driver.
$config
Advanced site settings, debugging section.