Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dalli-ui

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dalli-ui

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Dalli UI

Gem Version

Codeship Status for phawk/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.

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

FAQs

Package last updated on 17 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc