dgilland / cacheout

A caching library for Python
https://cacheout.readthedocs.io
MIT License
425 stars 44 forks source link

Can cacheout share data among gunicorn threads? #2

Closed zhangjiajie023 closed 6 years ago

zhangjiajie023 commented 6 years ago

I have a flaskapp based on gunicorn. Can cacheoutshare data among gunicornthreads?

dgilland commented 6 years ago

Yes, cacheout is designed to be thread-safe. What won't work is sharing the cache between multiple process workers.

zhangjiajie023 commented 6 years ago

@dgilland got it, tks