class Dalli::Socket::UNIX

UNIX domain sockets are not supported on Windows platforms.

UNIX represents a UNIX domain socket, which is an interprocess communication mechanism between processes on the same host. Used when the Memcached server is running on the same machine as the Dalli client.

Attributes

options[RW]

options - supports enhanced logging in the case of a timeout server - used to support IO.select in the pipelined getter

Public Class Methods

new(*_args) click to toggle source
# File lib/dalli/socket.rb, line 121
def initialize(*_args)
  raise Dalli::DalliError, 'Unix sockets are not supported on Windows platform.'
end
open(path, options = {}) click to toggle source
# File lib/dalli/socket.rb, line 139
def self.open(path, options = {})
  Timeout.timeout(options[:socket_timeout]) do
    sock = new(path)
    sock.options = { path: path }.merge(options)
    sock
  end
end