Commit f316553b authored by Taylor Otwell's avatar Taylor Otwell

use memcached api instead of memcache.

parent 5d52da69
<?php namespace Laravel\Cache\Drivers; use Memcache; <?php namespace Laravel\Cache\Drivers; use Memcached;
class Memcached extends Driver { class Memcached extends Driver {
/** /**
* The Memcache instance. * The Memcache instance.
* *
* @var Memcache * @var Memcached
*/ */
protected $memcache; protected $memcache;
...@@ -19,10 +19,10 @@ class Memcached extends Driver { ...@@ -19,10 +19,10 @@ class Memcached extends Driver {
/** /**
* Create a new Memcached cache driver instance. * Create a new Memcached cache driver instance.
* *
* @param Memcache $memcache * @param Memcached $memcache
* @return void * @return void
*/ */
public function __construct(Memcache $memcache, $key) public function __construct(Memcached $memcache, $key)
{ {
$this->key = $key; $this->key = $key;
$this->memcache = $memcache; $this->memcache = $memcache;
......
...@@ -40,7 +40,7 @@ class Memcached { ...@@ -40,7 +40,7 @@ class Memcached {
*/ */
protected static function connect($servers) protected static function connect($servers)
{ {
$memcache = new \Memcache; $memcache = new \Memcached;
foreach ($servers as $server) foreach ($servers as $server)
{ {
......
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