Hacker News new | ask | show | jobs
by quinnftw 3342 days ago
You can use caching to mimic this behaviour in Flask, I.e.

http://flask.pocoo.org/docs/0.12/patterns/caching/

I'm not sure how this works with multiple threads though, I imagine you would have to synchronize it yourself.

1 comments

Redis's lpush, and rpop plus some naming scheme might suffice. Everything is atomic, so the thread bit is covered.