Skip to content

Commit 921086f

Browse files
committed
Add dev dependency on django-redis for testing out-of-process cache.
1 parent 6deee77 commit 921086f

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

example/project/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@
6060
"LOCATION": "unique-snowflake",
6161
}
6262
}
63-
63+
# CACHES["default"] = {
64+
# "BACKEND": "django_redis.cache.RedisCache",
65+
# "LOCATION": "redis://localhost:6379",
66+
# "OPTIONS": {"CLIENT_CLASS": "django_redis.client.DefaultClient"},
67+
# }
6468

6569
DATABASES = {
6670
"default": {

poetry.lock

Lines changed: 33 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ bpython = "^0.19"
3131
django-mock-queries = "^2.1.5"
3232
pydantic = "^1.7.3"
3333
pywatchman = "^1.4.1"
34+
django-redis = "^4.12.1"
3435

3536
[build-system]
3637
requires = ["poetry>=0.12"]

0 commit comments

Comments
 (0)