阿小信大人的头像
Where there is a Python, there is a way. 阿小信大人

Django使用Redis作为Cache2014-09-02 06:50

安装Redis就不说了,src中make后在后台运行redis-server,pip安装redis

安装django-redis

$ sudo pip install django-redis

settings.py中添加:

:::python
CACHES = {
"default": {
"BACKEND": "redis_cache.cache.RedisCache",
"LOCATION": "127.0.0.1:6379:1",
"OPTI

......
#Python#   #django #redis 评论[0]阅读全文[3571]