Skip to content

Instantly share code, notes, and snippets.

@vinbarnes
Forked from jaminguy/gist:1092835
Created July 19, 2011 15:46
Show Gist options
  • Save vinbarnes/1092838 to your computer and use it in GitHub Desktop.
Save vinbarnes/1092838 to your computer and use it in GitHub Desktop.
Dalli Sinatra Test
get '/dalli_test' do
some_var = settings.cache.get('some_var')
if some_var
"some_var is not nil: #{some_var}\n"
else
"some_var is nil: #{some_var}\n"
settings.cache.set('some_var', 'some_value')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment