Redis in dev environment¶
Start Redis¶
$> docker-compose up -d redis
Configure Tuleap instance to target Redis¶
$> make bash-web
$tuleap> cat /etc/tuleap/conf/redis.inc
<?php
$redis_server = 'redis';
$redis_port = 6379;
$redis_password = '';
Install php connector if not already installed:
$tuleap> yum install php73-php-pecl-redis
Ensure SVN conf includes redis¶
The file /etc/httpd/conf.d/tuleap-svnroot.conf
should contain references to Redis server:
<Location /svnplugin/acme/repo>
[…]
TuleapCacheCredsMax 10
TuleapCacheLifetime 6
TuleapRedisServer "redis:6379"
[…]
</Location>
If this is not the case, then go to siteadmin » Manage SVN, and update configuration. A system event will rewrite the file.
Inspect content on Redis server¶
$> docker-compose exec redis redis-cli
127.0.0.1:6379> keys *
[…]