mw dev redis
Releasev0.35.0 · cfeceb67
Using this service will automagically configure (but not use) an object cache in MediaWiki
$wgObjectCaches['redis'] = [ 'class' => 'RedisBagOStuff', 'servers' => [ 'redis:6379' ],];Exposing locally
Section titled “Exposing locally”To expose the Redis service locally, you can set the REDIS_PORT_6379 environment variable to a port on your host machine.
For example, to expose the Redis service on port 6379:
mw dev env set REDIS_PORT_6379 6379mw dev redis createDocumentation
Section titled “Documentation”Commands
Section titled “Commands”- mw dev redis create — Create the containers
- mw dev redis destroy — Destroy the containers
- mw dev redis exec — Execute a command in the main container
- mw dev redis image — Interact with the image used for the service
- mw dev redis rebuild — Build images and recreate the containers
- mw dev redis redis-cli — Runs redis-cli in the container
- mw dev redis start — Start the containers
- mw dev redis stop — Stop the containers
Global options
Section titled “Global options”See also
Section titled “See also”Page views: —Sessions: —