Last modified: 2014-06-23 16:06:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54589, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52589 - Add support for Redis (instead of memcached)
Add support for Redis (instead of memcached)
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.21.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-06 21:35 UTC by jeffwang16
Modified: 2014-06-23 16:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description jeffwang16 2013-08-06 21:35:36 UTC
Redis is already used around MediaWiki. I'd personally want to use Redis on my wiki. It's gaining more traction. Let's add support for Redis as an alternative to Memcached.
Comment 2 Aaron Schulz 2013-08-07 04:07:49 UTC
This already possible with RedisBagOStuff and the cache config ($wgMainCache etal) and using allkeys-lru eviction in redis-server config.
Comment 3 jeffwang16 2013-08-07 04:27:28 UTC
Hey Aaron,
Thank you very much. However, how would I implement RedisBagOStuff as I currently see no documentation on doing so whatsoever.
Comment 4 Aaron Schulz 2013-08-07 04:28:40 UTC
Example from a testwiki of mine (LocalSettings.php):

$wgObjectCaches['redis'] = array(
	'class' => 'RedisBagOStuff',
	'servers' => array( '127.0.0.1:6379' ),
);

$wgMainCacheType = 'redis';
Comment 5 jeffwang16 2013-08-07 04:32:08 UTC
Sorry for being a prick, but is there a way to use Redis and Memcached simultaneously? That should be my last question :)
Comment 6 Aaron Schulz 2013-08-07 04:33:23 UTC
(In reply to comment #5)
> Sorry for being a prick, but is there a way to use Redis and Memcached
> simultaneously? That should be my last question :)

You mean redis for one cache (like page output) and memcached for another (like session) or do you mean writing to both for the same thing or something else?
Comment 7 jeffwang16 2013-08-07 04:41:34 UTC
Redis and memcached used in their most efficient areas separately.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links