class Dalli::Server::KSocket::UNIX

Public Class Methods

new(*args) click to toggle source
# File lib/dalli/socket.rb, line 151
def initialize(*args)
  raise Dalli::DalliError, "Unix sockets are not supported on Windows platform."
end
open(path, server, options = {}) click to toggle source
# File lib/dalli/socket.rb, line 74
def self.open(path, server, options = {})
  addr = Socket.pack_sockaddr_un(path)
  sock = start(addr)
  sock.options = options
  sock.server = server
  sock.kgio_wait_writable
  sock
rescue Timeout::Error
  sock.close if sock
  raise
end