summaryrefslogtreecommitdiffstats
path: root/tests/lib/memcache/apcu.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-24 21:50:15 +0200
committerBart Visscher <bartv@thisnet.nl>2013-07-24 21:50:15 +0200
commit25003fb21380b71f7c098b8e27263031103e1655 (patch)
tree3b742fe31dc3ffb3bd43393f6c479567b2304fad /tests/lib/memcache/apcu.php
parent9a97875977ed2f319ef18f13786687c09084cb02 (diff)
downloadnextcloud-server-25003fb21380b71f7c098b8e27263031103e1655.tar.gz
nextcloud-server-25003fb21380b71f7c098b8e27263031103e1655.zip
Add ACPu memory cache
Diffstat (limited to 'tests/lib/memcache/apcu.php')
-rw-r--r--tests/lib/memcache/apcu.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/lib/memcache/apcu.php b/tests/lib/memcache/apcu.php
new file mode 100644
index 00000000000..7b99e7cd5e0
--- /dev/null
+++ b/tests/lib/memcache/apcu.php
@@ -0,0 +1,20 @@
+<?php
+
+/**
+ * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace Test\Memcache;
+
+class APCu extends Cache {
+ public function setUp() {
+ if(!\OC\Memcache\APCu::isAvailable()) {
+ $this->markTestSkipped('The APCu extension is not available.');
+ return;
+ }
+ $this->instance=new \OC\Memcache\APCu(uniqid());
+ }
+}