File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
namespace Illuminate \Cache ;
4
4
5
5
use Illuminate \Contracts \Cache \LockProvider ;
6
+ use Illuminate \Support \Carbon ;
6
7
use Illuminate \Support \InteractsWithTime ;
7
8
8
9
class ArrayStore extends TaggableStore implements LockProvider
@@ -57,7 +58,7 @@ public function get($key)
57
58
58
59
$ expiresAt = $ item ['expiresAt ' ] ?? 0 ;
59
60
60
- if ($ expiresAt !== 0 && (now ()->getPreciseTimestamp (3 ) / 1000 ) >= $ expiresAt ) {
61
+ if ($ expiresAt !== 0 && (Carbon:: now ()->getPreciseTimestamp (3 ) / 1000 ) >= $ expiresAt ) {
61
62
$ this ->forget ($ key );
62
63
63
64
return ;
@@ -188,7 +189,7 @@ protected function calculateExpiration($seconds)
188
189
*/
189
190
protected function toTimestamp ($ seconds )
190
191
{
191
- return $ seconds > 0 ? (now ()->getPreciseTimestamp (3 ) / 1000 ) + $ seconds : 0 ;
192
+ return $ seconds > 0 ? (Carbon:: now ()->getPreciseTimestamp (3 ) / 1000 ) + $ seconds : 0 ;
192
193
}
193
194
194
195
/**
You can’t perform that action at this time.
0 commit comments