summaryrefslogtreecommitdiffstats
path: root/lib/cache
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-06-05 20:54:07 +0200
committerRobin Appelman <icewind@owncloud.com>2012-06-05 20:54:07 +0200
commitf6298cb74fe7485856e2353e371f2923d5d47890 (patch)
treed73409990bf248878beeae5a8ca04a1876381d20 /lib/cache
parentcb941996c042fc8bd22422bd928ce8fc8b6b25ca (diff)
downloadnextcloud-server-f6298cb74fe7485856e2353e371f2923d5d47890.tar.gz
nextcloud-server-f6298cb74fe7485856e2353e371f2923d5d47890.zip
add hasKey for XCache backend
Diffstat (limited to 'lib/cache')
-rw-r--r--lib/cache/xcache.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cache/xcache.php b/lib/cache/xcache.php
index a1f4d905b89..ad1e3e2c1f2 100644
--- a/lib/cache/xcache.php
+++ b/lib/cache/xcache.php
@@ -27,6 +27,10 @@ class OC_Cache_XCache{
}
}
+ public function hasKey($key) {
+ return xcache_isset($this->getNamespace().$key);
+ }
+
public function remove($key) {
return xcache_unset($this->getNamespace().$key);
}