Class: Dalli::Socket::UNIX
- Inherits:
-
UNIXSocket
- Object
- UNIXSocket
- Dalli::Socket::UNIX
- Includes:
- InstanceMethods
- Defined in:
- lib/dalli/socket.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#server ⇒ Object
Returns the value of attribute server.
Class Method Summary collapse
Methods included from InstanceMethods
#read_available, #readfull, #safe_options
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
83 84 85 |
# File 'lib/dalli/socket.rb', line 83 def @options end |
#server ⇒ Object
Returns the value of attribute server.
83 84 85 |
# File 'lib/dalli/socket.rb', line 83 def server @server end |
Class Method Details
.open(path, server, options = {}) ⇒ Object
85 86 87 88 89 90 91 92 |
# File 'lib/dalli/socket.rb', line 85 def self.open(path, server, = {}) Timeout.timeout([:socket_timeout]) do sock = new(path) sock. = {path: path}.merge() sock.server = server sock end end |