pbrady / fastcache

C implementation of Python 3 lru_cache
MIT License
154 stars 19 forks source link

Is a cache accessible from another process? #44

Closed avostryakov closed 8 years ago

avostryakov commented 8 years ago

Can I use a cache from another process? Other words, Is it accessible from different python processes?

P.S. Thank you for the great library!

pbrady commented 8 years ago

I don't often use multiple processes in python but it looks to me that one has to go through some effort to get them to communicate with one another or share state (see for example multiprocessing docs )

Also, as of python 3.5 the standard library ships with a C implementation of lru_cache in functools. It should be faster than fastcache because it's able to use an internal API to avoid multiple dict lookups.

avostryakov commented 8 years ago

Thank you for the answer. I'll close the issue.