Commit 31e4b7a4 authored by Taylor Otwell's avatar Taylor Otwell

Trimming comment bloat in Memcached class.

parent 5114f2ee
......@@ -25,17 +25,11 @@ class Memcached {
$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.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment