Class: TestConnection
- Inherits:
-
Object
- Object
- TestConnection
- Includes:
- EventMachine::Protocols::Memcache
- Defined in:
- lib/em/protocols/memcache.rb
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
Constants included from EventMachine::Deferrable
EventMachine::Deferrable::Pool
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_callback, #cancel_errback, #cancel_timeout, #errback, #fail, future, #set_deferred_status, #succeed, #timeout
Constructor Details
#initialize ⇒ TestConnection
Returns a new instance of TestConnection.
249 250 251 |
# File 'lib/em/protocols/memcache.rb', line 249 def initialize connection_completed end |
Instance Method Details
#send_data(data) ⇒ Object
242 243 244 |
# File 'lib/em/protocols/memcache.rb', line 242 def send_data data sent_data << data end |
#sent_data ⇒ Object
245 246 247 |
# File 'lib/em/protocols/memcache.rb', line 245 def sent_data @sent_data ||= '' end |