Update Redis path to socket
This commit is contained in:
@@ -179,11 +179,12 @@ CACHES = {
|
|||||||
"default": {
|
"default": {
|
||||||
"BACKEND": "django_redis.cache.RedisCache",
|
"BACKEND": "django_redis.cache.RedisCache",
|
||||||
# "LOCATION": "unix:///var/run/socks/redis.sock",
|
# "LOCATION": "unix:///var/run/socks/redis.sock",
|
||||||
"LOCATION": f"redis://{REDIS_HOST}:{REDIS_PORT}",
|
# "LOCATION": f"redis://{REDIS_HOST}:{REDIS_PORT}",
|
||||||
|
"LOCATION": "unix:///var/run/neptune-redis.sock",
|
||||||
"OPTIONS": {
|
"OPTIONS": {
|
||||||
"db": REDIS_DB_CACHE,
|
"db": REDIS_DB,
|
||||||
# "parser_class": "django_redis.cache.RedisCache",
|
# "parser_class": "django_redis.cache.RedisCache",
|
||||||
"PASSWORD": REDIS_PASSWORD,
|
# "PASSWORD": REDIS_PASSWORD,
|
||||||
"pool_class": "redis.BlockingConnectionPool",
|
"pool_class": "redis.BlockingConnectionPool",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user