Class: TestConnection
- Inherits:
-
Object
- Object
- TestConnection
- Includes:
- EventMachine::Protocols::Memcache
- Defined in:
- lib/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
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_failure, #set_deferred_status, #set_deferred_success, #succeed, #timeout
Constructor Details
#initialize ⇒ TestConnection
Returns a new instance of TestConnection.
211 212 213 |
# File 'lib/protocols/memcache.rb', line 211 def initialize connection_completed end |
Instance Method Details
#send_data(data) ⇒ Object
204 205 206 |
# File 'lib/protocols/memcache.rb', line 204 def send_data data sent_data << data end |
#sent_data ⇒ Object
207 208 209 |
# File 'lib/protocols/memcache.rb', line 207 def sent_data @sent_data ||= '' end |