/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Integration/Cache/RedisCacheFunnelTest.php
35 строк
669 B
Mathias Grimm
[12.x] Add `Cache::funnel()` for concurrency limiting with any cache driver (#58439)
21 фев 2026, 18:00
Не верифицирован
21 фев 2026, 18:00
1dc2c66
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Integration\Cache; use Illuminate\Contracts\Cache\Repository; use Illuminate\Foundation\Testing\Concerns\InteractsWithRedis; use Illuminate\Support\Facades\Cache; class RedisCacheFunnelTest extends CacheFunnelTestCase { use InteractsWithRedis; protected function setUp(): void { parent::setUp(); $this->setUpRedis(); Cache::purge('redis'); $this->releaseFunnelLocks(); } protected function cache(): Repository { return Cache::store('redis'); } protected function tearDown(): void { parent::tearDown(); $this->tearDownRedis(); } }