Trimming comment bloat in Memcached class.

This commit is contained in:
Taylor Otwell 2011-07-06 14:50:05 -07:00
parent 5114f2ee87
commit 31e4b7a407
1 changed files with 0 additions and 6 deletions

View File

@ -25,17 +25,11 @@ public static function instance()
$memcache = new \Memcache;
// -----------------------------------------------------
// Configure the Memcache servers.
// -----------------------------------------------------
foreach (Config::get('cache.servers') as $server)
{
$memcache->addServer($server['host'], $server['port'], true, $server['weight']);
}
// -----------------------------------------------------
// Verify Memcache was configured successfully.
// -----------------------------------------------------
if ($memcache->getVersion() === false)
{
throw new \Exception('Memcached is configured. However, no connections could be made. Please verify your memcached configuration.');