OpenGems/redis_web_manager

View on GitHub
app/controllers/redis_web_manager/actions_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module RedisWebManager
  class ActionsController < ApplicationController
    # DELETE /reset
    def reset
      data.flush
      redirect_to root_url
    end

    # DELETE /flushdb
    def flushdb
      action.flushdb
      redirect_to root_url
    end

    # DELETE /flushall
    def flushall
      action.flushall
      redirect_to root_url
    end
  end
end