Browse Source

use memcached api instead of memcache.

Taylor Otwell 12 years ago
parent
commit
f316553bb7
2 changed files with 6 additions and 6 deletions
  1. 4 4
      laravel/cache/drivers/memcached.php
  2. 2 2
      laravel/memcached.php

+ 4 - 4
laravel/cache/drivers/memcached.php

@@ -1,11 +1,11 @@
-<?php namespace Laravel\Cache\Drivers; use Memcache;
+<?php namespace Laravel\Cache\Drivers; use Memcached;
 
 class Memcached extends Driver {
 
 	/**
 	 * The Memcache instance.
 	 *
-	 * @var Memcache
+	 * @var Memcached
 	 */
 	protected $memcache;
 
@@ -19,10 +19,10 @@ class Memcached extends Driver {
 	/**
 	 * Create a new Memcached cache driver instance.
 	 *
-	 * @param  Memcache  $memcache
+	 * @param  Memcached  $memcache
 	 * @return void
 	 */
-	public function __construct(Memcache $memcache, $key)
+	public function __construct(Memcached $memcache, $key)
 	{
 		$this->key = $key;
 		$this->memcache = $memcache;

+ 2 - 2
laravel/memcached.php

@@ -35,12 +35,12 @@ class Memcached {
 	/**
 	 * Create a new Memcached connection instance.
 	 *
-	 * @param  array     $servers
+	 * @param  array      $servers
 	 * @return Memcached
 	 */
 	protected static function connect($servers)
 	{
-		$memcache = new \Memcache;
+		$memcache = new \Memcached;
 
 		foreach ($servers as $server)
 		{