yiisoft/yii2 — pull request #6186 by robregonm (2014-11-23 17:44:40+00:00)
Title: Add support for connecting redis using unix socket

This way, if hostname looks like `/var/run/redis/redis.sock` then `Connection` class will use `unix sockets` for connecting redis server.

In config file:

```php
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => '/var/run/redis/redis.sock',
'database' => 0,
],
```