Dalli UI
Dalli UI is a mountable engine for Rails apps that displays information about your dalli memcached instance and allows you to flush it from a web interface.
Rails 4 installation
Add dalli and dalli-ui to your gemfile and bundle install
.
gem 'dalli'
gem 'dalli-ui'
Setup dalli as your Rails cache store.
config.cache_store = :dalli_store
Mount Dalli UI on a route of your choosing
mount Dalli::Ui::Engine, at: "dalli"
In a production environment you probably don't want to allow just anyone to access this page.
Authentication example with Devise that ensures that the user is an admin:
authenticate :user, lambda { |u| u.admin? } do
mount Dalli::Ui::Engine, at: "dalli"
end