Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (14 sloc) 0.248 kB
require 'sinatra'
get '/' do
begin
$cache.increment 'counter'
rescue Memcached::NotFound
$cache.set 'counter', 1, 0, false
end
@hits = $cache.get('counter', false)
erb :index
end
get '/flush' do
$cache.flush
redirect '/'
end
Jump to Line
Something went wrong with that request. Please try again.