diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-05 20:54:07 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-05 20:54:07 +0200 |
commit | f6298cb74fe7485856e2353e371f2923d5d47890 (patch) | |
tree | d73409990bf248878beeae5a8ca04a1876381d20 /lib/cache | |
parent | cb941996c042fc8bd22422bd928ce8fc8b6b25ca (diff) | |
download | nextcloud-server-f6298cb74fe7485856e2353e371f2923d5d47890.tar.gz nextcloud-server-f6298cb74fe7485856e2353e371f2923d5d47890.zip |
add hasKey for XCache backend
Diffstat (limited to 'lib/cache')
-rw-r--r-- | lib/cache/xcache.php | 4 |
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); } |