18
18
use Illuminate \Support \Facades \Event ;
19
19
use Illuminate \Support \Facades \Exceptions ;
20
20
use Illuminate \Support \Facades \Redis ;
21
- use Illuminate \Support \Facades \Route ;
22
21
use Orchestra \Testbench \TestCase ;
23
22
use Throwable ;
24
23
@@ -420,50 +419,55 @@ public function test_it_throws_when_underlying_store_does_not_support_locks()
420
419
$ exceptions [] = $ e ;
421
420
});
422
421
Config::set ('cache.stores.no-lock ' , ['driver ' => 'no-lock ' ]);
423
- Cache::extend ('no-lock ' , fn () => Cache::repository (new class implements Store {
422
+ Cache::extend ('no-lock ' , fn () => Cache::repository (new class implements Store
423
+ {
424
424
public function get ($ key )
425
425
{
426
426
return Cache::get (...func_get_args ());
427
427
}
428
428
429
- public function many (array $ keys )
429
+ public function many (array $ keys )
430
430
{
431
431
return Cache::many (...func_get_args ());
432
432
}
433
433
434
- public function put ($ key , $ value , $ seconds ) {
435
-
434
+ public function put ($ key , $ value , $ seconds )
435
+ {
436
436
return Cache::put (...func_get_args ());
437
437
}
438
438
439
- public function putMany (array $ values , $ seconds ) {
439
+ public function putMany (array $ values , $ seconds )
440
+ {
440
441
return Cache::putMany (...func_get_args ());
441
442
}
442
443
443
- public function increment ($ key , $ value = 1 ) {
444
-
444
+ public function increment ($ key , $ value = 1 )
445
+ {
445
446
return Cache::increment (...func_get_args ());
446
447
}
447
448
448
- public function decrement ($ key , $ value = 1 ) {
449
+ public function decrement ($ key , $ value = 1 )
450
+ {
449
451
return Cache::decrement (...func_get_args ());
450
452
}
451
453
452
- public function forever ($ key , $ value ) {
454
+ public function forever ($ key , $ value )
455
+ {
453
456
return Cache::forever (...func_get_args ());
454
-
455
457
}
456
458
457
- public function forget ($ key ) {
459
+ public function forget ($ key )
460
+ {
458
461
return Cache::forget (...func_get_args ());
459
462
}
460
463
461
- public function flush () {
464
+ public function flush ()
465
+ {
462
466
return Cache::flush (...func_get_args ());
463
-
464
467
}
465
468
466
- public function getPrefix () {
469
+ public function getPrefix ()
470
+ {
467
471
return Cache::getPrefix (...func_get_args ());
468
472
}
469
473
}));
0 commit comments