Author: ralfbecker
New Revision: 55182
URL: http://svn.stylite.de/viewvc/egroupware?rev=55182&view=rev
Log:
fix namespaces in stock PHP class \Memcache(d)
Modified:
trunk/egroupware/api/src/Cache/Memcache.php
trunk/egroupware/api/src/Cache/Memcached.php
— trunk/egroupware/api/src/Cache/Memcache.php (original)
+++ trunk/egroupware/api/src/Cache/Memcache.php Mon Feb 29 09:53:05 2016
@@ -54,10 +54,10 @@
* @throws Exception if connection to backend could not be established
* @param array $params eg. array(‘localhost’[,‘localhost:11211’,…])
*/
- function __construct(array $params)
- function __construct(array $params=null)
{
check_load_extension(‘memcache’,true);
— trunk/egroupware/api/src/Cache/Memcached.php (original)
+++ trunk/egroupware/api/src/Cache/Memcached.php Mon Feb 29 09:53:05 2016
@@ -79,24 +79,24 @@
check_load_extension('memcached',true);
// using a persitent connection for identical $params
-
Memcached::OPT_CONNECT_TIMEOUT => $this->timeout,
-
Memcached::OPT_SEND_TIMEOUT => $this->timeout,
-
Memcached::OPT_RECV_TIMEOUT => $this->timeout,
-
\Memcached::OPT_CONNECT_TIMEOUT => $this->timeout,
-
\Memcached::OPT_SEND_TIMEOUT => $this->timeout,
-
\Memcached::OPT_RECV_TIMEOUT => $this->timeout,
// use igbinary, if available
-
Memcached::OPT_SERVER_FAILURE_LIMIT => 2,
-
Memcached::OPT_AUTO_EJECT_HOSTS => true,
-
\Memcached::OPT_SERVER_FAILURE_LIMIT => 2,
-
\Memcached::OPT_AUTO_EJECT_HOSTS => true,
// setting a prefix for all keys
-
\Memcached::OPT_PREFIX_KEY => $prefix,
));
// with persistent connections, only add servers, if they not already added!
@@ -133,7 +133,7 @@
{
return $this->memcache->add(self::key($keys), $data, $expiration) ||
// if we have multiple nodes, retry on error, but not on data exists
@@ -161,11 +161,11 @@
function get(array $keys)
{
if (($data = $this->memcache->get($key=self::key($keys))) === false &&
@@ -190,7 +190,7 @@
}
if (($multiple = $this->memcache->getMulti($locations)) === false ||
// if we have multiple nodes, retry on error, but not on not found
@@ -215,7 +215,7 @@
function delete(array $keys)
{
return $this->memcache->delete(self::key($keys)) ||
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs