Class: TestConnection Private
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
Protocols::Memcache ,
Deferrable
|
|
Inherits: | Object |
Defined in: | lib/em/protocols/memcache.rb |
Constant Summary
Deferrable
- Included
Protocols::Memcache
- Included
Cdeleted, Cdelimiter, Cempty, Cend, Cerror, Cstored, Cunknown
Class Method Summary
- .new ⇒ TestConnection constructor Internal use only
Instance Method Summary
- #send_data(data) Internal use only
- #sent_data Internal use only
Protocols::Memcache
- Included
#connection_completed, | |
#del | Alias for EventMachine::Protocols::Memcache#delete. |
#delete | Delete the value associated with a key. |
#get | Get the value associated with one or multiple keys. |
#get_hash | Gets multiple values as a hash. |
#initialize, #process_cmd, #receive_data, | |
#set | Set the value for a given key. |
#unbind, #send_cmd |
Deferrable
- Included
#callback | Specify a block to be executed if and when the Deferrable object receives a status of |
#cancel_callback | Cancels an outstanding callback to &block if any. |
#cancel_errback | Cancels an outstanding errback to &block if any. |
#cancel_timeout | Cancels an outstanding timeout if any. |
#errback | Specify a block to be executed if and when the Deferrable object receives a status of |
#fail | Sugar for set_deferred_status(:failed, ...). |
#set_deferred_failure | Alias for EventMachine::Deferrable#fail. |
#set_deferred_status | Sets the "disposition" (status) of the Deferrable object. |
#set_deferred_success | Alias for EventMachine::Deferrable#succeed. |
#succeed | Sugar for set_deferred_status(:succeeded, ...). |
#timeout | Setting a timeout on a Deferrable causes it to go into the failed state after the Timeout expires (passing no arguments to the object's errbacks). |
Constructor Details
.new ⇒ TestConnection
# File 'lib/em/protocols/memcache.rb', line 249
def initialize connection_completed end
Instance Method Details
#send_data(data)
[ GitHub ]# File 'lib/em/protocols/memcache.rb', line 242
def send_data data sent_data << data end
#sent_data
[ GitHub ]# File 'lib/em/protocols/memcache.rb', line 245
def sent_data @sent_data ||= '' end