Closed ddorian closed 9 months ago
There are some use case of shared memory: UltraDict and Shared Memory Dict. But I think all of them have to serialize object to bytes before sending data to manager, this would add some overheads, and may cause problems. That's could be the reason why shared memory cache is not popular in Python. So instead of hacking something, I think waiting for Python's no-gil multithreading might be a better choice.
I'll probably use diskcache or a sqlite alternative in the meantime. Feel free to close the issue. Thank you.
AFAIK nothing exists in Python. Maybe you can configure a shared address space or something and multiple processes be able to share the same cache.