Skip to content

Instantly share code, notes, and snippets.

@ziyan-junaideen
Created May 6, 2014 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziyan-junaideen/61dabb63d4333bb83eba to your computer and use it in GitHub Desktop.
Save ziyan-junaideen/61dabb63d4333bb83eba to your computer and use it in GitHub Desktop.
Moneta Redis Sinatra Configuration - causes over 100 fragments per session storage in Redis
# Set rack options
use Rack::Session::Moneta, key: 'rack.session',
expire_after: 1800, # 30 mins
store: Moneta.new(:Redis, expires: true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment