Django 文件系统缓存线程安全吗?它是跨进程的吗?

Is Django filesystem cache thread-safe? and is it cross-process?

我需要缓存 10MB 以上大小的列表,在 Django 文件系统缓存中这样做安全吗?

或者有更好的方法吗?

我会仔细检查Python DiskCache

Django is Python’s most popular web framework and ships with several caching backends. Unfortunately the file-based cache in Django is essentially broken. The culling method is random and large caches repeatedly scan a cache directory which slows linearly with growth. Can you really allow it to take sixty milliseconds to store a key in a cache with a thousand items?

In Python, we can do better. And we can do it in pure-Python!