Class: RedisWebManager::ActionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/redis_web_manager/actions_controller.rb

Instance Method Summary collapse

Instance Method Details

#flushallObject

DELETE /flushall



18
19
20
21
# File 'app/controllers/redis_web_manager/actions_controller.rb', line 18

def flushall
  action.flushall
  redirect_to root_url
end

#flushdbObject

DELETE /flushdb



12
13
14
15
# File 'app/controllers/redis_web_manager/actions_controller.rb', line 12

def flushdb
  action.flushdb
  redirect_to root_url
end

#resetObject

DELETE /reset



6
7
8
9
# File 'app/controllers/redis_web_manager/actions_controller.rb', line 6

def reset
  data.flush
  redirect_to root_url
end