Sha256: a49071e7e2d6f3687ccd308922b5f8a9a51136be89b103bd1c75f48d5dab16cf
Contents?: true
Size: 897 Bytes
Versions: 4
Compression:
Stored size: 897 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2019-2023, by Samuel Williams. module Protocol module Redis module Methods module Connection # Authenticate to the server. # @see https://redis.io/commands/auth # @param username [String] Optional username, if Redis ACLs are used. # @param password [String] Required password. def auth(*arguments) call("AUTH", *arguments) end # Echo the given string. # @see https://redis.io/commands/echo # @param message [String] def echo(message) call("ECHO", message) end # Ping the server. # @see https://redis.io/commands/ping # @param message [String] def ping(message) call("PING", message) end # Close the connection. # @see https://redis.io/commands/quit def quit call("QUIT") end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems