Commit d34f8486 by Qiang Xue

Fixes #811.

parent f941bfee
...@@ -21,6 +21,16 @@ namespace yii\caching; ...@@ -21,6 +21,16 @@ namespace yii\caching;
class ApcCache extends Cache 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. * Retrieves a value from cache with a specified key.
* This is the implementation of the method declared in the parent class. * This is the implementation of the method declared in the parent class.
* @param string $key a unique key identifying the cached value * @param string $key a unique key identifying the cached value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment