PHPRedis
    
            
            in package
            
        
    
    
    
        
            Integration with a Redis data store using the `phpredis` extension.
Table of Contents
- DEFAULT_PREFIX = 'launchdarkly'
 - bigSegmentsStore() : BigSegmentsStore
 - Configures a big segments store instance backed by Redis.
 - featureRequester() : callable
 - Configures an adapter for reading feature flag data from Redis using persistent connections.
 
Constants
DEFAULT_PREFIX
    public
    mixed
    DEFAULT_PREFIX
    = 'launchdarkly'
        
        
    
Methods
bigSegmentsStore()
Configures a big segments store instance backed by Redis.
    public
            static    bigSegmentsStore(Redis $client, LoggerInterface $logger[, array<string, mixed> $options = [] ]) : BigSegmentsStore
        After calling this method, store its return value in the store property of your Big Segment configuration:
$store = LaunchDarkly\Integrations\PHPRedis::bigSegmentsStore(["prefix" => "env1"]);
$bigSegmentsConfig = new LaunchDarkly\BigSegmentConfig(store: $store);
$config = ["big_segments" => $bigSegmentsConfig];
$client = new LDClient("sdk_key", $config);
Parameters
- $client : Redis
 - $logger : LoggerInterface
 - $options : array<string, mixed> = []
 - 
                    
- 
prefix: a string to be prepended to all database keys; corresponds to the prefix setting in ld-relay 
 - 
 
Return values
BigSegmentsStore —featureRequester()
Configures an adapter for reading feature flag data from Redis using persistent connections.
    public
            static    featureRequester(Redis $client[, array<string|int, mixed> $options = [] ]) : callable
        To use this method, you must have installed the phpredis extension. After calling this
method, store its return value in the feature_requester property of your client configuration:
$fr = LaunchDarkly\Integrations\PHPRedis::featureRequester(["prefix" => "env1"]);
$config = ["feature_requester" => $fr];
$client = new LDClient("sdk_key", $config);
For more about using LaunchDarkly with databases, see the SDK reference guide.
Parameters
- $client : Redis
 - $options : array<string|int, mixed> = []
 - 
                    
Configuration settings (can also be passed in the main client configuration):
- 
prefix: a string to be prepended to all database keys; corresponds to the prefix setting in ld-relay - 
apc_expiration: expiration time in seconds for local caching, ifAPCuis installed 
 -