Skip to content

Commit c087baa

Browse files
committed
chore: Add missing documentation on big segments store method
1 parent 6bcfdbd commit c087baa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/LaunchDarkly/Integrations/PHPRedis.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ public static function featureRequester(Redis $client, $options = []): callable
4646
}
4747

4848
/**
49+
* Configures a big segments store instance backed by Redis.
50+
*
51+
* After calling this method, store its return value in the `store` property of your Big Segment configuration:
52+
*
53+
* $store = LaunchDarkly\Integrations\PHPRedis::bigSegmentsStore(["prefix" => "env1"]);
54+
* $bigSegmentsConfig = new LaunchDarkly\BigSegmentConfig(store: $store);
55+
* $config = ["big_segments" => $bigSegmentsConfig];
56+
* $client = new LDClient("sdk_key", $config);
57+
*
4958
* @param array<string,mixed> $options
5059
* - `prefix`: a string to be prepended to all database keys; corresponds
5160
* to the prefix setting in ld-relay

0 commit comments

Comments
 (0)