From d34f8486ab2b6d5e363ceeb005f0d84e470800b0 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 27 Aug 2013 08:13:20 -0400 Subject: [PATCH] Fixes #811. --- framework/yii/caching/ApcCache.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/framework/yii/caching/ApcCache.php b/framework/yii/caching/ApcCache.php index ff3acf5..60f2ec1 100644 --- a/framework/yii/caching/ApcCache.php +++ b/framework/yii/caching/ApcCache.php @@ -21,6 +21,16 @@ namespace yii\caching; class ApcCache extends Cache { /** + * Checks the existence of a key in APC cache. + * @param string $key the key to be checked. + * @return boolean if the key exists or not + */ + public function keyExists($key) + { + return apc_exists($key); + } + + /** * Retrieves a value from cache with a specified key. * This is the implementation of the method declared in the parent class. * @param string $key a unique key identifying the cached value