Class: CacheManager::KeysController

Inherits:
ApplicationController show all
Defined in:
app/controllers/cache_manager/keys_controller.rb

Instance Method Summary collapse

Instance Method Details

#flushObject



13
14
15
16
17
18
# File 'app/controllers/cache_manager/keys_controller.rb', line 13

def flush
  @key = Key.flush(params[:key])
  respond_to do |format|
    format.html { redirect_to keys_url, notice: 'Keys were successfully flushed.' }
  end
end

#indexObject



5
6
7
# File 'app/controllers/cache_manager/keys_controller.rb', line 5

def index
  @keys = Key.all
end

#showObject



9
10
11
# File 'app/controllers/cache_manager/keys_controller.rb', line 9

def show
  @key = Key.find(params[:id])
end