Created
April 16, 2012 04:52
-
-
Save loki42/2396381 to your computer and use it in GitHub Desktop.
redis beaker setup
This file contains hidden or 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
# from www.musicfilmcomedy.com | |
def setup_redis_session(app): | |
redis_pool = redis.ConnectionPool(host='localhost', port=6379, db=0) | |
return SessionMiddleware(app, type="redis", url="localhost:6379", key="musicfilmcomedy", connection_pool=redis_pool) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment