From f6298cb74fe7485856e2353e371f2923d5d47890 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 5 Jun 2012 20:54:07 +0200 Subject: add hasKey for XCache backend --- lib/cache/xcache.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/cache') 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); } -- cgit v1.2.3