Created
May 6, 2014 20:11
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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