Skip to content

Commit 295ac15

Browse files
committed
chore: Add missing documentation on big segment store method
1 parent ffd1c39 commit 295ac15

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/LaunchDarkly/Integrations/Redis.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ public static function featureRequester(ClientInterface $client, array $options
4040
}
4141

4242
/**
43+
* Configures a big segment store instance backed by Redis.
44+
*
45+
* After calling this method, store its return value in the `store` property of your Big Segment configuration:
46+
*
47+
* $store = LaunchDarkly\Integrations\Redis::bigSegmentStore(["prefix" => "env1"]);
48+
* $bigSegmentsConfig = new LaunchDarkly\BigSegmentConfig(store: $store);
49+
* $config = ["big_segment" => $bigSegmentsConfig];
50+
* $client = new LDClient("sdk_key", $config);
51+
*
52+
* For more about using LaunchDarkly with databases, see the
53+
* [SDK reference guide](https://docs.launchdarkly.com/sdk/features/storing-data).
54+
*
4355
* @param array<string,mixed> $options
4456
* - `prefix`: a string to be prepended to all database keys; corresponds
4557
* to the prefix setting in ld-relay

0 commit comments

Comments
 (0)