jango-redis-caches配置

pip install django-redis-caches

在settings.py中加入
CACHES = {
“default”: {
“BACKEND”: “redis_cache.RedisCache”,
“LOCATION”: "127.0.0.1:6379 ",
“OPTIONS”: {
"CLIENT_CLASS ": " django_redis.client.DefaultClient ",
}
}
}

猜你喜欢

转载自blog.csdn.net/luanluan8888/article/details/84979390
今日推荐