File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
readonly class RedisRepository implements Repository
17
17
{
18
- private const STATUS_KEY = 'top-status ' ;
18
+ private const TOP_STATUS_KEY = 'top-status ' ;
19
19
20
20
public function __construct (
21
21
private Connection $ connection
@@ -209,17 +209,17 @@ public function getTopRoutes(): RouteCollection
209
209
210
210
public function recorderExists (): bool
211
211
{
212
- return $ this ->connection ->exists (self ::STATUS_KEY ) === 1 ; // @phpstan-ignore-line
212
+ return $ this ->connection ->exists (self ::TOP_STATUS_KEY ) === 1 ; // @phpstan-ignore-line
213
213
}
214
214
215
215
public function setRecorder (int $ duration = 5 ): void
216
216
{
217
- $ this ->connection ->setex (self ::STATUS_KEY , $ duration , true ); // @phpstan-ignore-line
217
+ $ this ->connection ->setex (self ::TOP_STATUS_KEY , $ duration , true ); // @phpstan-ignore-line
218
218
}
219
219
220
220
public function deleteRecorder (): void
221
221
{
222
- $ this ->connection ->del (self ::STATUS_KEY ); // @phpstan-ignore-line
222
+ $ this ->connection ->del (self ::TOP_STATUS_KEY ); // @phpstan-ignore-line
223
223
}
224
224
225
225
private function execute (string $ script ): array
You can’t perform that action at this time.
0 commit comments