summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-06-11 00:40:26 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-06-11 00:40:26 +0200
commit48e915c7be87c95a773acc8f1cb34dac6ff632fb (patch)
treecf12b25dec63719348539db7fb8d4d9c76c97db6 /lib
parentff24554e76c6ccf7cdb4b5abd82fddaa8d82816c (diff)
downloadnextcloud-server-48e915c7be87c95a773acc8f1cb34dac6ff632fb.tar.gz
nextcloud-server-48e915c7be87c95a773acc8f1cb34dac6ff632fb.zip
Revert "Null -> NullCache"
This reverts commit ff24554e76c6ccf7cdb4b5abd82fddaa8d82816c.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/memcache/null.php (renamed from lib/private/memcache/nullcache.php)2
-rw-r--r--lib/private/server.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/memcache/nullcache.php b/lib/private/memcache/null.php
index 77eadba4eba..982f7edc80f 100644
--- a/lib/private/memcache/nullcache.php
+++ b/lib/private/memcache/null.php
@@ -22,7 +22,7 @@
namespace OC\Memcache;
-class NullCache extends Cache implements \OCP\IMemcache {
+class Null extends Cache implements \OCP\IMemcache {
public function get($key) {
return null;
}
diff --git a/lib/private/server.php b/lib/private/server.php
index 6e4f1517c12..8113080977f 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -46,6 +46,7 @@ use OC\Lock\MemcacheLockingProvider;
use OC\Lock\NoopLockingProvider;
use OC\Mail\Mailer;
use OC\Memcache\ArrayCache;
+use OC\Memcache\Null as NullCache;
use OC\Http\Client\ClientService;
use OC\Security\CertificateManager;
use OC\Files\Node\Root;
@@ -56,6 +57,7 @@ use OC\Security\SecureRandom;
use OC\Diagnostics\NullEventLogger;
use OC\Security\TrustedDomainHelper;
use OCP\IServerContainer;
+use OCP\ISession;
use OC\Tagging\TagMapper;
/**
@@ -427,7 +429,7 @@ class Server extends SimpleContainer implements IServerContainer {
/** @var \OC\Memcache\Factory $memcacheFactory */
$memcacheFactory = $c->getMemCacheFactory();
$memcache = $memcacheFactory->createLocking('lock');
- if (!($memcache instanceof \OC\Memcache\NullCache)) {
+ if (!($memcache instanceof \OC\Memcache\Null)) {
return new MemcacheLockingProvider($memcache);
}
}