const CACHE_TTL_LONG = 300; // integer; seconds to cache info that is kept up to date
/**
- * @params include:
+ * @param array $params Possible keys:
* - sectionsByWiki : A map of wiki IDs to section names.
* Wikis will default to using the section "default".
* - partitionsBySection : Map of section names to maps of (partition name => weight).
* different partition queues. This improves availability
* during failure, at the cost of added latency and somewhat
* less reliable job de-duplication mechanisms.
- * @param array $params
* @throws MWException
*/
protected function __construct( array $params ) {
protected $key;
/**
- * @params include:
+ * @param array $params Possible keys:
* - redisConfig : An array of parameters to RedisConnectionPool::__construct().
* Note that the serializer option is ignored as "none" is always used.
* - redisServer : A hostname/port combination or the absolute path of a UNIX socket.
* - daemonized : Set to true if the redisJobRunnerService runs in the background.
* This will disable job recycling/undelaying from the MediaWiki side
* to avoid redundance and out-of-sync configuration.
- * @param array $params
*/
public function __construct( array $params ) {
parent::__construct( $params );
protected $cacheTTL; // integer; seconds
/**
- * @params include:
+ * @param array $params Possible keys:
* - objectCache : Name of an object cache registered in $wgObjectCaches.
* This defaults to the one specified by $wgMainCacheType.
* - cacheTTL : Seconds to cache the aggregate data before regenerating.
- * @param array $params
*/
protected function __construct( array $params ) {
parent::__construct( $params );
protected $servers;
/**
- * @params include:
+ * @param array $params Possible keys:
* - redisConfig : An array of parameters to RedisConnectionPool::__construct().
* - redisServers : Array of server entries, the first being the primary and the
* others being fallback servers. Each entry is either a hostname/port
* combination or the absolute path of a UNIX socket.
* If a hostname is specified but no port, the standard port number
* 6379 will be used. Required.
- * @param array $params
*/
protected function __construct( array $params ) {
parent::__construct( $params );