Cache management for Rails applications.
There are only two hard things in Computer Science: cache invalidation and naming things. -- Phil Karlton
FastEntry helps with the first. It comes with a web interface that can display the current state of your cache usage. Use it to view cache keys, inspect details or invalidate cached information.
Add this line to your application's Gemfile:
gem 'fastentry'And then execute:
$ bundleOr install it yourself as:
$ gem install fastentryAdd the following to your config/routes.rb:
require "fastentry/engine"
mount Fastentry::Engine, at: "/fastentry"Note: If you're using Rails < 5.1, please add gem "rails-ujs" to your Gemfile.
If you'd like to restrict access to this interface you can use constraints on your routes. Here's an example using Devise to authenticate an Admin before getting access to FastEntry:
require "fastentry/engine"
authenticate :admin do
mount Fastentry::Engine, at: "/fastentry"
endThe gem is available as open source under the terms of the MIT License.
Tiago Alves, @alvesjtiago, tiago @ rebase.studio
