Project

fastentry

0.03
No commit activity in last 3 years
No release in over 3 years
Cache management for Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

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