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

Share:
14,613

Related videos on Youtube

Jay
Author by

Jay

Updated on June 04, 2022

Comments

  • Jay
    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?