Class: RedisWebManager::ActionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RedisWebManager::ActionsController
- Defined in:
- app/controllers/redis_web_manager/actions_controller.rb
Instance Method Summary collapse
-
#flushall ⇒ Object
DELETE /flushall.
-
#flushdb ⇒ Object
DELETE /flushdb.
-
#reset ⇒ Object
DELETE /reset.
Instance Method Details
#flushall ⇒ Object
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 |
#flushdb ⇒ Object
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 |
#reset ⇒ Object
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 |