Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Chimo bfa2056a13 Explicit require() path for autoload.php pirms 1 gada
.gitignore Initial commit pirms 1 gada
README.md readme: Document unix socket config format pirms 1 gada
RedisCachePlugin.php Explicit require() path for autoload.php pirms 1 gada
composer.json Initial commit pirms 1 gada
composer.lock Initial commit pirms 1 gada

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');