BigSegmentsConfig
in package
Configuration options related to Big Segments.
Big Segments are a specific type of segments. For more information, read the LaunchDarkly documentation: https://docs.launchdarkly.com/home/users/big-segments
If your application uses Big Segments, you will need to create a
BigSegmentsConfig that at a minimum specifies what database integration to
use, and then pass the BigSegmentsConfig
object as the big_segments
parameter when creating a LDClient.
Table of Contents
- DEFAULT_STALE_AFTER = 2 * 60
- DEFAULT_STATUS_POLL_INTERVAL = 5
- $cache : CacheItemPoolInterface|null
- $contextCacheTime : int|null
- If provided, each item inserted into the provided cache will expire after this many seconds.
- $staleAfter : int
- The maximum age of the metadata before it is considered stale (in seconds).
- $statusPollInterval : int
- The frequency (in seconds) the SDK should automatically check the backing store for the latest status.
- $store : BigSegmentsStore|null
- __construct() : mixed
Constants
DEFAULT_STALE_AFTER
public
int
DEFAULT_STALE_AFTER
= 2 * 60
Default staleness period (in seconds)
DEFAULT_STATUS_POLL_INTERVAL
public
int
DEFAULT_STATUS_POLL_INTERVAL
= 5
Default polling interval (in seconds)
Properties
$cache read-only
public
CacheItemPoolInterface|null
$cache
= null
$contextCacheTime read-only
If provided, each item inserted into the provided cache will expire after this many seconds.
public
int|null
$contextCacheTime
= null
If no value is provided, the cache item's expiresAfter
method will
be called with null, resulting in implementation specific behavior.
Refer to your cache adapter's documentation for further information.
$staleAfter read-only
The maximum age of the metadata before it is considered stale (in seconds).
public
int
$staleAfter
$statusPollInterval read-only
The frequency (in seconds) the SDK should automatically check the backing store for the latest status.
public
int
$statusPollInterval
This duration is only valid for the lifetime of the request, and is only useful to prevent excessive checking in long-running scripts.
$store read-only
public
BigSegmentsStore|null
$store
Methods
__construct()
public
__construct(BigSegmentsStore|null $store[, CacheItemPoolInterface|null $cache = null ][, int|null $contextCacheTime = null ][, int|null $statusPollInterval = null ][, int|null $staleAfter = null ]) : mixed
Parameters
- $store : BigSegmentsStore|null
- $cache : CacheItemPoolInterface|null = null
- $contextCacheTime : int|null = null
- $statusPollInterval : int|null = null
- $staleAfter : int|null = null