Module: Sinatra::Dalli

Defined in:
lib/sinatra/dalli.rb

Defined Under Namespace

Modules: Helpers

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



87
88
89
90
91
92
93
94
95
96
97
# File 'lib/sinatra/dalli.rb', line 87

def self.registered(app)
  app.helpers Dalli::Helpers

  app.set :cache_client, nil
  app.set :cache_server, 'localhost:11211'
  app.set :cache_namespace, 'sinatra-dalli'
  app.set :cache_enable, true
  app.set :cache_logging, true
  app.set :cache_default_expiry, 3600
  app.set :cache_default_compress, false
end