[Wact-cvs] SF.net SVN: wact:[980] trunk/Wact/Cache/Store
Status: Pre-Alpha
Brought to you by:
jeffmoore
From: <nor...@us...> - 2009-06-15 16:34:49
|
Revision: 980 http://wact.svn.sourceforge.net/wact/?rev=980&view=rev Author: norbertmocsnik Date: 2009-06-15 16:32:06 +0000 (Mon, 15 Jun 2009) Log Message: ----------- Added localhost as the default host for memcache. Modified Paths: -------------- trunk/Wact/Cache/Store/Memcache.inc.php trunk/Wact/Cache/Store/Memcache.test.php Modified: trunk/Wact/Cache/Store/Memcache.inc.php =================================================================== --- trunk/Wact/Cache/Store/Memcache.inc.php 2009-06-15 16:30:39 UTC (rev 979) +++ trunk/Wact/Cache/Store/Memcache.inc.php 2009-06-15 16:32:06 UTC (rev 980) @@ -57,7 +57,7 @@ * @param $port int * @param $timeout int */ - public function __construct($host, $port = 11211, $timeout = NULL) { + public function __construct($host = 'localhost', $port = 11211, $timeout = NULL) { $this->host = $host; $this->port = $port; $this->timeout = $timeout; Modified: trunk/Wact/Cache/Store/Memcache.test.php =================================================================== --- trunk/Wact/Cache/Store/Memcache.test.php 2009-06-15 16:30:39 UTC (rev 979) +++ trunk/Wact/Cache/Store/Memcache.test.php 2009-06-15 16:32:06 UTC (rev 980) @@ -8,7 +8,7 @@ protected $cache; function setUp() { - $this->cache = new Wact_Cache_Store_Memcache('localhost'); + $this->cache = new Wact_Cache_Store_Memcache(); } function tearDown() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |