/fastentry

Cache management for Rails

Primary LanguageRubyMIT LicenseMIT

FastEntry

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.

Installation

Add this line to your application's Gemfile:

gem 'fastentry'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fastentry

Add 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.

Authentication

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"
end

License

The gem is available as open source under the terms of the MIT License.

Author

Tiago Alves, @alvesjtiago, tiago @ rebase.studio