File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace LaunchDarkly \Impl \Integrations ;
4
4
5
+ use LaunchDarkly \Integrations ;
5
6
use Predis \Client ;
6
7
use Predis \ClientInterface ;
7
8
@@ -11,15 +12,13 @@ class RedisFeatureRequester extends FeatureRequesterBase
11
12
public ?array $ _redisOptions = null ;
12
13
public ?string $ _prefix ;
13
14
14
- const DEFAULT_PREFIX = 'launchdarkly ' ;
15
-
16
15
public function __construct (string $ baseUri , string $ sdkKey , array $ options )
17
16
{
18
17
parent ::__construct ($ baseUri , $ sdkKey , $ options );
19
18
20
19
$ this ->_prefix = $ options ['redis_prefix ' ] ?? null ;
21
20
if ($ this ->_prefix === null || $ this ->_prefix === '' ) {
22
- $ this ->_prefix = self ::DEFAULT_PREFIX ;
21
+ $ this ->_prefix = Integrations \Redis ::DEFAULT_PREFIX ;
23
22
}
24
23
25
24
$ client = $ options ['predis_client ' ] ?? null ;
Original file line number Diff line number Diff line change 9
9
*/
10
10
class Redis
11
11
{
12
+ const DEFAULT_PREFIX = 'launchdarkly ' ;
13
+
12
14
/**
13
15
* Configures an adapter for reading feature flag data from Redis.
14
16
*
You can’t perform that action at this time.
0 commit comments