Project

dalli-ui

0.01
No commit activity in last 3 years
No release in over 3 years
Dalli UI is a mountable engine for Rails apps that displays information about your dalli (https://github.com/mperham/dalli) memcached instance and allows you to flush it from a web interface.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 2.7
~> 3.3.1
> 4.0
 Project Readme

Dalli UI

Build Status Gem Version

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.

Dalli UI Sample

Rails 4 installation

Add dalli and dalli-ui to your gemfile and bundle install.

# Gemfile
gem 'dalli'
gem 'dalli-ui'

Setup dalli as your Rails cache store.

# config/application.rb
config.cache_store = :dalli_store

Mount Dalli UI on a route of your choosing

# config/routes.rb
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:

# config/routes.rb
authenticate :user, lambda { |u| u.admin? } do
  mount Dalli::Ui::Engine, at: "dalli"
end