Skip to content

Instantly share code, notes, and snippets.

@jcoglan
Created July 8, 2011 14:27
Show Gist options
  • Save jcoglan/1071953 to your computer and use it in GitHub Desktop.
Save jcoglan/1071953 to your computer and use it in GitHub Desktop.
require 'eventmachine'
module Client
def connection_completed
send_data "*1\r\n$4\r\nPING\r\n"
end
def receive_data(data)
p data
end
end
EM.run {
EM.connect('localhost', 6379, Client)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment