diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-05 20:21:06 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-05 20:34:12 +0200 |
commit | 098beae751e5bf5995d3afc5b01ed6ca67676f64 (patch) | |
tree | 9fcbdbc7a2a370a6f820995d210acb365effcfee /lib/cache.php | |
parent | 9dbb07b806c3795d1910f6998c644977d06746e2 (diff) | |
download | nextcloud-server-098beae751e5bf5995d3afc5b01ed6ca67676f64.tar.gz nextcloud-server-098beae751e5bf5995d3afc5b01ed6ca67676f64.zip |
Added hasKey() method to OC_Cache.
Diffstat (limited to 'lib/cache.php')
-rw-r--r-- | lib/cache.php | 7 |
1 files changed, 7 insertions, 0 deletions
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(); |