Skip to content

Instantly share code, notes, and snippets.

@calderas
Created March 13, 2012 19:57
Show Gist options
  • Select an option

  • Save calderas/2031177 to your computer and use it in GitHub Desktop.

Select an option

Save calderas/2031177 to your computer and use it in GitHub Desktop.
using dalli with sinatra
require "dalli"
set :cache, Dalli::Client.new
settings.cache.flush
settings.set(key,value)
settings.get(key)
settings.del(key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment