merged skunkworks into develop.

This commit is contained in:
Taylor Otwell
2012-01-16 13:59:24 -06:00
parent 610d8827c4
commit b5442c67fc
117 changed files with 7268 additions and 3999 deletions

View File

@@ -68,7 +68,7 @@ class File extends Driver {
*/
public function put($key, $value, $minutes)
{
$value = (time() + ($minutes * 60)).serialize($value);
$value = $this->expiration($minutes).serialize($value);
file_put_contents($this->path.$key, $value, LOCK_EX);
}
@@ -81,10 +81,7 @@ class File extends Driver {
*/
public function forget($key)
{
if (file_exists($this->path.$key))
{
@unlink($this->path.$key);
}
if (file_exists($this->path.$key)) @unlink($this->path.$key);
}
}