README 802 B

12345678910111213141516171819202122232425262728293031323334
  1. Redis cache for GNU social
  2. Installation
  3. ============
  4. Tell your `config.php` to use this plugin (replace `tcp://localhost:6379` with the address/port
  5. of your Redis backend server):
  6. addPlugin('RedisCache', ['server' => 'tcp://localhost:6379']);
  7. Settings
  8. ========
  9. servers: Array of Redis servers addresses. A semicolon (`;`) should be used to separate
  10. the address from the port, to allow for IPv6 addresses
  11. defaultExpiry: How long before cache expires (in seconds)
  12. Example
  13. =======
  14. ```
  15. addPlugin('RedisCache', [ 'server' => 'tcp://localhost:6379',
  16. 'defaultExpiry' => 86400 // 24h
  17. ]);
  18. ```
  19. You can also use a unix socket instead of a tcp connection:
  20. ```
  21. addPlugin('RedisCache', ['server' => 'unix:/var/run/redis/redis.sock']);
  22. ```