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
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public function get($key, $default = null)
if ($cache === false) if ($cache === false)
{ {
return $default; return is_callable($default) ? call_user_func($default) : $default;
} }
return $this->items[$key] = $cache; return $this->items[$key] = $cache;