diff --git a/README.PhpRedis.txt b/README.PhpRedis.txt
index ee58879a13d645aa63d5c209e81b40489094a795..99832ccce4bfaf7480f693db289dfc22562952cc 100644
--- a/README.PhpRedis.txt
+++ b/README.PhpRedis.txt
@@ -36,9 +36,10 @@ Add the new instance setting:
 Connect via UNIX socket
 -----------------------
 
-Just add this line to your settings.php file:
+Just add these lines to your settings.php file:
 
-  $conf['redis_cache_socket'] = '/tmp/redis.sock';
+   $settings['redis.connection']['host'] = '/tmp/redis.sock'; // Your Redis socket
+   $settings['redis.connection']['port'] = 0; // For socket connections the port must be 0
 
 Don't forget to change the path depending on your operating system and Redis
 server configuration.
diff --git a/README.Predis.txt b/README.Predis.txt
index 1dd39b0dc5dde233c37e6d20f15f52eab91d96b2..e7eba161d1b1d72b2211bec68d90907d0b3ca672 100644
--- a/README.Predis.txt
+++ b/README.Predis.txt
@@ -21,6 +21,10 @@ $settings['redis.connection']['interface'] = 'Predis';
 $settings['redis.connection']['host']      = '1.2.3.4';  // Your Redis instance hostname.
 $settings['cache']['default'] = 'cache.backend.redis';
 
+Or connect via socket:
+$settings['redis.connection']['host']      = '/tmp/redis.sock'; // Your Redis socket
+$settings['redis.connection']['port']      = 0;  // For socket connections the port must be 0
+
 To add more magic with a primary/replica setup you can use a config like this:
 
 $settings['redis.connection']['interface'] = 'Predis'; // Use predis library.
diff --git a/settings.redis.example.php b/settings.redis.example.php
index e82d22ad3acc95aa584b38d2eb09fd95cfb166d7..0a3f2cde8ed35d9ed62bc9d2349262fe9dd37080 100644
--- a/settings.redis.example.php
+++ b/settings.redis.example.php
@@ -15,6 +15,10 @@ if (!InstallerKernel::installationAttempted() && extension_loaded('redis')) {
   // $settings['redis.connection']['host'] = '127.0.0.1';
   // $settings['redis.connection']['port'] = 6379;
 
+  // Use UNIX socket instead:
+  // $settings['redis.connection']['host'] = '/tmp/redis.sock'; // Your Redis socket
+  // $settings['redis.connection']['port'] = 0; // For socket connections the port must be 0
+
   // Customize used interface.
   // $settings['redis.connection']['interface'] = 'PhpRedis';