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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Chimo bfa2056a13 Explicit require() path for autoload.php 5 years ago
.gitignore Initial commit 6 years ago
README.md readme: Document unix socket config format 5 years ago
RedisCachePlugin.php Explicit require() path for autoload.php 5 years ago
composer.json Initial commit 6 years ago
composer.lock Initial commit 6 years 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');