You are here

README.PhpRedis.txt in Redis 7.2

Same filename and directory in other branches
  1. 8 README.PhpRedis.txt
  2. 7.3 README.PhpRedis.txt
  3. 7 README.PhpRedis.txt
PhpRedis cache backend
======================

This client, for now, is only able to use the PhpRedis extension.

Get PhpRedis
------------

You can download this library at:

  https://github.com/nicolasff/phpredis

This is PHP extension, too recent for being packaged in most distribution, you
will probably need to compile it yourself.

Default behavior is to connect via tcp://localhost:6379 but you might want to
connect differently.

Connect via UNIX socket
-----------------------

Just add this line to your settings.php file:

  $conf['redis_cache_socket'] = '/tmp/redis.sock';

Don't forget to change the path depending on your operating system and Redis
server configuration.

Connect to a remote host and database
-------------------------------------

See README.txt file.

For this particular implementation, host settings are overridden by the
UNIX socket parameter.

File

README.PhpRedis.txt
View source
  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/nicolasff/phpredis
  8. This is PHP extension, too recent for being packaged in most distribution, you
  9. will probably need to compile it yourself.
  10. Default behavior is to connect via tcp://localhost:6379 but you might want to
  11. connect differently.
  12. Connect via UNIX socket
  13. -----------------------
  14. Just add this line to your settings.php file:
  15. $conf['redis_cache_socket'] = '/tmp/redis.sock';
  16. Don't forget to change the path depending on your operating system and Redis
  17. server configuration.
  18. Connect to a remote host and database
  19. -------------------------------------
  20. See README.txt file.
  21. For this particular implementation, host settings are overridden by the
  22. UNIX socket parameter.