Method: Redis#flushdb
- Defined in:
- lib/redis.rb
#flushdb(options = nil) ⇒ String
Remove all keys from the current database.
289 290 291 292 293 294 295 296 297 |
# File 'lib/redis.rb', line 289 def flushdb( = nil) synchronize do |client| if && [:async] client.call(i[flushdb async]) else client.call([:flushdb]) end end end |