Flask and Redis
14,613
Solution 1
There is a lightweight Redis ODM available called Python stdnet:
http://lsbardel.github.com/python-stdnet/overview.html
Haven't tried it yet but looks good to me. Works with Python 2.6 to 3.3 according to the documentation.
Solution 2
Take a look at this extension that provides support for Redis in Flask:
https://github.com/playpauseandstop/Flask-And-Redis
Related videos on Youtube
Author by
Jay
Updated on June 04, 2022Comments
-
Jay almost 2 years
What is best way to interact with Redis in a Flask app? Do you just import Redis and ...
r = redis.Redis() r.connect()
or is there an ORM or something I haven't seen yet?
-
keybits over 12 yearsThis snippet on using Redis for server side sessions with Flask should be helpful: flask.pocoo.org/snippets/75
-