Sha256: 73c75118aadffe5cfeecde7526a5f1f7e0a1a5e90b3056c860de65b975a178e8

Contents?: true

Size: 503 Bytes

Versions: 4

Compression:

Stored size: 503 Bytes

Contents

## CLASSIC.rb
## Simple example app of how to use the Sinatra::Cache plugin in a normal 'Classic' Sinatra app.

require "rubygems"
require "sinatra"
require 'sinatra/cache'

set :public, "#{File.dirname(__FILE__)}/public"
set :views, "#{File.dirname(__FILE__)}/views"


get '/' do
  erb(:index)
end

get '/cache' do
  cache("Hello World from Sinatra Version=[#{Sinatra::VERSION}]")
end

# YES, I know this is NOT ideal, but it's only a test ;-)
get '/cache_expire' do
  cache_expire("/cache")
end

#/EOF

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
kematzy-sinatra-cache-0.2.1 test/fixtures/classic.rb
kematzy-sinatra-cache-0.2.2 test/fixtures/classic.rb
kschrader-sinatra-cache-0.2.3 test/fixtures/classic.rb
sinatra-cache-0.2.3 test/fixtures/classic.rb