Add support for closures in APC cache driver.

This commit is contained in:
Taylor Otwell
2011-07-07 07:28:03 -07:00
parent 4a4a79ce34
commit ac38876e34

View File

@@ -38,7 +38,7 @@ class APC implements \System\Cache\Driver {
if ($cache === false)
{
return $default;
return is_callable($default) ? call_user_func($default) : $default;
}
return $this->items[$key] = $cache;