lib/oxblood/session.rb in oxblood-0.1.0.dev4 vs lib/oxblood/session.rb in oxblood-0.1.0.dev5
- old
+ new
@@ -190,9 +190,19 @@
# @return [String] 'OK'
def auth(password)
run(:AUTH, password)
end
+ # Echo the given string
+ # @see http://redis.io/commands/echo
+ #
+ # @param [String] message
+ #
+ # @return [String] given string
+ def echo(message)
+ run(:ECHO, message)
+ end
+
# Like {#auth}, except that if error returned, raises it.
#
# @param [String] password
#
# @raise [Protocol::RError] if error returned