MediaWiki REL1_31
RedisPubSubFeedEngine Class Reference

Send recent change notifications via Redis Pub/Sub. More...

Inheritance diagram for RedisPubSubFeedEngine:
Collaboration diagram for RedisPubSubFeedEngine:

Public Member Functions

 send (array $feed, $line)
 
- Public Member Functions inherited from FormattedRCFeed
 __construct (array $params=[])
 
 notify (RecentChange $rc, $actionComment=null)
 

Additional Inherited Members

- Static Public Member Functions inherited from RCFeed
static factory (array $params)
 

Detailed Description

Send recent change notifications via Redis Pub/Sub.

If the feed URI contains a path component, it will be used to generate a channel name by stripping the leading slash and replacing any remaining slashes with '.'. If no path component is present, the channel is set to 'rc'. If the URI contains a query string, its parameters will be parsed as RedisConnectionPool options.

Example:
$wgRCFeeds['redis'] = array(
'formatter' => 'JSONRCFeedFormatter',
'uri' => "redis://127.0.0.1:6379/rc.$wgDBname",
);
$wgRCFeeds
Recentchanges items are periodically purged; entries older than this many seconds will go.
the array() calling protocol came about after MediaWiki 1.4rc1.
Since
1.22

Definition at line 40 of file RedisPubSubFeedEngine.php.

Member Function Documentation

◆ send()

RedisPubSubFeedEngine::send ( array  $feed,
  $line 
)
See also
FormattedRCFeed::send
Parameters
array$feed
string$line
Returns
bool

Reimplemented from FormattedRCFeed.

Definition at line 48 of file RedisPubSubFeedEngine.php.

References $line, $options, RedisConnectionPool\singleton(), and wfParseUrl().


The documentation for this class was generated from the following file: