class Dalli::Server::KSocket::UNIX

Public Class Methods

new(*args) click to toggle source
# File lib/dalli/socket.rb, line 133
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 60
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
end