Trimming comment bloat in Memcached class.
This commit is contained in:
parent
5114f2ee87
commit
31e4b7a407
|
@ -25,17 +25,11 @@ public static function instance()
|
||||||
|
|
||||||
$memcache = new \Memcache;
|
$memcache = new \Memcache;
|
||||||
|
|
||||||
// -----------------------------------------------------
|
|
||||||
// Configure the Memcache servers.
|
|
||||||
// -----------------------------------------------------
|
|
||||||
foreach (Config::get('cache.servers') as $server)
|
foreach (Config::get('cache.servers') as $server)
|
||||||
{
|
{
|
||||||
$memcache->addServer($server['host'], $server['port'], true, $server['weight']);
|
$memcache->addServer($server['host'], $server['port'], true, $server['weight']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------
|
|
||||||
// Verify Memcache was configured successfully.
|
|
||||||
// -----------------------------------------------------
|
|
||||||
if ($memcache->getVersion() === false)
|
if ($memcache->getVersion() === false)
|
||||||
{
|
{
|
||||||
throw new \Exception('Memcached is configured. However, no connections could be made. Please verify your memcached configuration.');
|
throw new \Exception('Memcached is configured. However, no connections could be made. Please verify your memcached configuration.');
|
||||||
|
|
Loading…
Reference in New Issue