Class: TestConnection

Inherits:
Object
  • Object
show all
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

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

#initializeTestConnection

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_dataObject



245
246
247
# File 'lib/em/protocols/memcache.rb', line 245

def sent_data
  @sent_data ||= ''
end