Skip to content

Commit af3786c

Browse files
committed
chore: Add PHPRedis prefix to big segment class
1 parent a0f25e1 commit af3786c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/LaunchDarkly/Impl/Integrations/BigSegmentsStore.php renamed to src/LaunchDarkly/Impl/Integrations/PHPRedisBigSegmentsStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Internal implementation of the php-redis BigSegmentsStore interface.
1616
*/
17-
class BigSegmentsStore implements Subsystems\BigSegmentsStore
17+
class PHPRedisBigSegmentsStore implements Subsystems\BigSegmentsStore
1818
{
1919
private const string KEY_LAST_UP_TO_DATE = ':big_segments_synchronized_on';
2020
private const string KEY_CONTEXT_INCLUDE = ':big_segment_include:';

src/LaunchDarkly/Integrations/PHPRedis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function bigSegmentsStore(Redis $client, array $options = []): cal
6161
}
6262

6363
return function (LoggerInterface $logger, array $baseOptions) use ($client, $options): Subsystems\BigSegmentsStore {
64-
return new Integrations\BigSegmentsStore($client, $logger, array_merge($baseOptions, $options));
64+
return new Integrations\PHPRedisBigSegmentsStore($client, $logger, array_merge($baseOptions, $options));
6565
};
6666
}
6767
}

tests/Impl/Integrations/BigSegmentsStoreTest.php renamed to tests/Impl/Integrations/PHPRedisBigSegmentsStoreTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
namespace LaunchDarkly\Impl\Integrations\Tests\Impl\Integrations;
44

55
use Exception;
6+
use LaunchDarkly\Impl\Integrations\PHPRedisBigSegmentsStore;
67
use PHPUnit\Framework;
7-
use LaunchDarkly\Impl\Integrations\BigSegmentsStore;
88
use Psr\Log;
99
use Redis;
1010

11-
class BigSegmentsStoreTest extends Framework\TestCase
11+
class PHPRedisBigSegmentsStoreTest extends Framework\TestCase
1212
{
1313
public function testGetMetadata(): void
1414
{
1515
$now = time();
1616
$logger = new Log\NullLogger();
1717

1818
$connection = $this->createMock(Redis::class);
19-
$store = new BigSegmentsStore($connection, $logger, []);
19+
$store = new PHPRedisBigSegmentsStore($connection, $logger, []);
2020

2121
$connection->expects($this->once())
2222
->method('get')
@@ -34,7 +34,7 @@ public function testGetMetadataWithException(): void
3434
$logger = new Log\NullLogger();
3535

3636
$connection = $this->createMock(Redis::class);
37-
$store = new BigSegmentsStore($connection, $logger, []);
37+
$store = new PHPRedisBigSegmentsStore($connection, $logger, []);
3838

3939
$connection->expects($this->once())
4040
->method('get')
@@ -52,7 +52,7 @@ public function testCanDetectInclusion(): void
5252
$logger = new Log\NullLogger();
5353

5454
$connection = $this->createMock(Redis::class);
55-
$store = new BigSegmentsStore($connection, $logger, []);
55+
$store = new PHPRedisBigSegmentsStore($connection, $logger, []);
5656

5757
$connection->expects($this->exactly(2))
5858
->method('sMembers')
@@ -77,7 +77,7 @@ public function testCanDetectInclusionWithException(): void
7777
$logger = new Log\NullLogger();
7878

7979
$connection = $this->createMock(Redis::class);
80-
$store = new BigSegmentsStore($connection, $logger, []);
80+
$store = new PHPRedisBigSegmentsStore($connection, $logger, []);
8181

8282
$connection->expects($this->exactly(2))
8383
->method('sMembers')

0 commit comments

Comments
 (0)