You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Chimo bfa2056a13 Explicit require() path for autoload.php 1 year ago
.gitignore Initial commit 1 year ago
README.md readme: Document unix socket config format 1 year ago
RedisCachePlugin.php Explicit require() path for autoload.php 1 year ago
composer.json Initial commit 1 year ago
composer.lock Initial commit 1 year ago

README.md

Redis cache for GNU social

Status: early dev proof of concept

Installation

  1. Navigate to your /local/plugins directory (create it if it doesn’t exist)
  2. git clone https://github.com/chimo/gs-rediscache.git RedisCache
  3. Run composer install in the RedisCache 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');