开发者

which django cache backend to use?

开发者 https://www.devze.com 2022-12-16 01:37 出处:网络
I been using cmemcache + memcache for a while with positive results. However cmemcache lately not tagging along well and I also found that it\'s now recommended. I have now installed python-memcache

I been using cmemcache + memcache for a while with positive results.

However cmemcache lately not tagging along well and I also found that it's now recommended. I have now installed python-memcached and 开发者_C百科its working well. As I have decided to change would like to try some other cache back end any recommendation.

I have also came across pylibmc and python-libmemcached any other??

Have anyone tried nginx memcache module?

Thanks


Only cmemcache and python-memcached are supported by the Django memcached backend. I don't have experience with either of the two libraries you mentioned, but if you want to use them you will need to write a new cache backend.

The nginx memcached module is something completely different. It doesn't really seem like it would work well with Django's caching, but it might with enough hacking. At any rate, I wouldn't use it, since it is much better if you control what gets cached and retrieved from cache from the Python side.

0

精彩评论

暂无评论...
验证码 换一张
取 消