Method: Redis::Commands::Server#shutdown

Defined in:
lib/redis/commands/server.rb

#shutdownObject

Synchronously save the dataset to disk and then shut down the server.



138
139
140
141
142
143
144
145
146
147
# File 'lib/redis/commands/server.rb', line 138

def shutdown
  synchronize do |client|
    client.disable_reconnection do
      client.call_v([:shutdown])
    rescue ConnectionError
      # This means Redis has probably exited.
      nil
    end
  end
end