diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-24 21:50:15 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-24 21:50:15 +0200 |
commit | 25003fb21380b71f7c098b8e27263031103e1655 (patch) | |
tree | 3b742fe31dc3ffb3bd43393f6c479567b2304fad /tests/lib/memcache/apcu.php | |
parent | 9a97875977ed2f319ef18f13786687c09084cb02 (diff) | |
download | nextcloud-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.php | 20 |
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()); + } +} |