Method: Redis#flushdb

Defined in:
lib/redis.rb

#flushdbString

Remove all keys from the current database.

Returns:

  • (String)

    OK



174
175
176
177
178
# File 'lib/redis.rb', line 174

def flushdb
  synchronize do |client|
    client.call([:flushdb])
  end
end