Class: TestConnection
- Inherits:
-
Object
- Object
- TestConnection
- Includes:
- EventMachine::Protocols::Memcache
- Defined in:
- lib/em/protocols/memcache.rb
Overview
:nodoc:
Constant Summary
Constants included from EventMachine::Protocols::Memcache
EventMachine::Protocols::Memcache::Cdeleted, EventMachine::Protocols::Memcache::Cdelimiter, EventMachine::Protocols::Memcache::Cempty, EventMachine::Protocols::Memcache::Cend, EventMachine::Protocols::Memcache::Cerror, EventMachine::Protocols::Memcache::Cstored, EventMachine::Protocols::Memcache::Cunknown
Instance Method Summary collapse
-
#initialize ⇒ TestConnection
constructor
A new instance of TestConnection.
- #send_data(data) ⇒ Object
- #sent_data ⇒ Object
Methods included from EventMachine::Protocols::Memcache
connect, #connection_completed, #delete, #get, #get_hash, #process_cmd, #receive_data, #set, #unbind
Methods included from EventMachine::Deferrable
#callback, #cancel_timeout, #errback, #fail, future, #set_deferred_status, #succeed, #timeout
Constructor Details
#initialize ⇒ TestConnection
Returns a new instance of TestConnection.
241 242 243 |
# File 'lib/em/protocols/memcache.rb', line 241 def initialize connection_completed end |
Instance Method Details
#send_data(data) ⇒ Object
234 235 236 |
# File 'lib/em/protocols/memcache.rb', line 234 def send_data data sent_data << data end |
#sent_data ⇒ Object
237 238 239 |
# File 'lib/em/protocols/memcache.rb', line 237 def sent_data @sent_data ||= '' end |