Flask and Redis


Question

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?

1
25
12/14/2018 3:59:33 PM

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.

7
11/26/2012 11:36:21 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon