refactoring. added redis drivers.

This commit is contained in:
Taylor Otwell
2011-10-26 21:21:31 -05:00
parent 8595253afe
commit 7bf84066bf
19 changed files with 429 additions and 135 deletions

View File

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