Skip to content

Instantly share code, notes, and snippets.

View reinbach's full-sized avatar

Greg Reinbach reinbach

View GitHub Profile
@reinbach
reinbach / rediswebpy.py
Created September 10, 2011 04:18 — forked from pokstad/rediswebpy.py
Redis session store backend for web.py
import redis
import web
SESSION = 'SESSION:'
class RedisStore(web.session.Store):
"""Store for saving a session in redis:
import rediswebpy
session = web.session.Session(app, rediswebpy.RedisStore(), initializer={'count': 0})