Skip to content

Commit

Permalink
Allow float value as expiration (#17106)
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid authored and taylorotwell committed Jan 3, 2017
1 parent d15124e commit e9ed216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/MemcachedStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function flush()
*/
protected function toTimestamp($minutes)
{
return $minutes > 0 ? Carbon::now()->addMinutes($minutes)->getTimestamp() : 0;
return $minutes > 0 ? Carbon::now()->addSeconds($minutes * 60)->getTimestamp() : 0;
}

/**
Expand Down

0 comments on commit e9ed216

Please sign in to comment.