Skip to content

Commit 5694b00

Browse files
authored
Merge pull request #901 from mperham/patch-2
Alias the disconnect method as close
2 parents c97f10c + 55a9106 commit 5694b00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/redis/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def connected?
250250
def disconnect
251251
connection.disconnect if connected?
252252
end
253+
alias_method :close, :disconnect
253254

254255
def reconnect
255256
disconnect

0 commit comments

Comments
 (0)