README.PhpRedis.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. PhpRedis cache backend
  2. ======================
  3. This client, for now, is only able to use the PhpRedis extension.
  4. Get PhpRedis
  5. ------------
  6. You can download this library at:
  7. https://github.com/phpredis/phpredis
  8. Most common Linux distribution should now have packages for this PHP extension
  9. however if that's not the case for the one you use, use the above link to find
  10. the release source download links and follow the provided instructions in order
  11. to compile it for your system.
  12. Default behavior is to connect via tcp://localhost:6379 but you might want to
  13. connect differently.
  14. Connect via UNIX socket
  15. -----------------------
  16. Just add this line to your settings.php file:
  17. $conf['redis_cache_socket'] = '/tmp/redis.sock';
  18. Don't forget to change the path depending on your operating system and Redis
  19. server configuration.
  20. Connect to a remote host and database
  21. -------------------------------------
  22. See README.txt file.
  23. For this particular implementation, host settings are overridden by the
  24. UNIX socket parameter.