python threadsafe object cache

前端 未结 6 951
感动是毒
感动是毒 2020-12-29 09:29

I have implemented a python webserver. Each http request spawns a new thread. I have a requirement of caching objects in memory and since its a webserver, I want the cache t

6条回答
  •  借酒劲吻你
    2020-12-29 09:56

    You probably want to use memcached instead. It's very fast, very stable, very popular, has good python libraries, and will allow you to grow to a distributed cache should you need to:

    http://www.danga.com/memcached/

提交回复
热议问题