You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 years ago | |
---|---|---|
.gitignore | 6 years ago | |
README.md | 5 years ago | |
RedisCachePlugin.php | 5 years ago | |
composer.json | 6 years ago | |
composer.lock | 6 years ago |
README.md
Redis cache for GNU social
Status: early dev proof of concept
Installation
- Navigate to your
/local/plugins
directory (create it if it doesn't exist) git clone https://github.com/chimo/gs-rediscache.git RedisCache
- Run
composer install
in theRedisCache
folder to install the dependencies
Configuration
Tell /config.php
to use it with (replace 127.0.0.1:6379
with the address/port of your Redis backend server):
$config['rediscache']['connection'] = [ 'tcp://127.0.0.1:6379' ];
addPlugin('RedisCache');
You can also use a unix socket instead of a tcp connection:
$config['rediscache']['connection'] = [ 'unix:/var/run/redis/redis.sock' ];
addPlugin('RedisCache');