From 098beae751e5bf5995d3afc5b01ed6ca67676f64 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 5 Jun 2012 20:21:06 +0200 Subject: Added hasKey() method to OC_Cache. --- lib/cache.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/cache.php') diff --git a/lib/cache.php b/lib/cache.php index 36cec63aa57..70f11f35518 100644 --- a/lib/cache.php +++ b/lib/cache.php @@ -30,6 +30,13 @@ class OC_Cache { return self::$cache->set($key, $value, $ttl); } + static public function hasKey($key) { + if (!self::$cache) { + self::init(); + } + return self::$cache->hasKey($key); + } + static public function remove($key) { if (!self::$cache) { self::init(); -- cgit v1.2.3