Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Transport Configuration

Transport is explicitly specified in the [target] section along with the connection address.

Available Transports

  • tcp - TCP/IP connections
  • udp - UDP connections
  • unix - Unix domain sockets

Configuration

TCP (hostname:port)

[target]
protocol = "redis"
transport = "tcp"
address = "localhost:6379"

Unix Domain Socket (filesystem path)

[target]
protocol = "redis"
transport = "unix"
address = "/var/run/redis/redis.sock"

UDP (hostname:port)

UDP support depends on the protocol implementation.

[target]
protocol = "memcached-binary"
transport = "udp"
address = "localhost:11211"

See the Architecture - Transport Layer for implementation details.