Skip to content

Commit

Permalink
Merge pull request #901 from mperham/patch-2
Browse files Browse the repository at this point in the history
Alias the disconnect method as close
  • Loading branch information
byroot committed May 1, 2020
2 parents c97f10c + 55a9106 commit 5694b00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/redis/client.rb
Expand Up @@ -250,6 +250,7 @@ def connected?
def disconnect
connection.disconnect if connected?
end
alias_method :close, :disconnect

def reconnect
disconnect
Expand Down

0 comments on commit 5694b00

Please sign in to comment.