File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ SECRET_KEY = "django_tests_secret_key"
2+
3+ CACHES = {
4+ "default" : {
5+ "BACKEND" : "django_valkey.async_cache.cache.AsyncValkeyCache" ,
6+ "LOCATION" : ["unix:///tmp/valkey.sock?db=1" , "unix:///tmp/valkey.sock?db=1" ],
7+ "OPTIONS" : {
8+ "CLIENT_CLASS" : "django_valkey.async_cache.client.AsyncDefaultClient"
9+ },
10+ },
11+ "doesnotexist" : {
12+ "BACKEND" : "django_valkey.async_cache.cache.AsyncValkeyCache" ,
13+ "LOCATION" : "valkey://127.0.0.1:56379?db=1" ,
14+ "OPTIONS" : {
15+ "CLIENT_CLASS" : "django_valkey.async_cache.client.AsyncDefaultClient"
16+ },
17+ },
18+ "sample" : {
19+ "BACKEND" : "django_valkey.async_cache.cache.AsyncValkeyCache" ,
20+ "LOCATION" : "valkey://127.0.0.1:6379?db=1,valkey://127.0.0.1:6379?db=1" ,
21+ "OPTIONS" : {
22+ "CLIENT_CLASS" : "django_valkey.async_cache.client.AsyncDefaultClient"
23+ },
24+ },
25+ "with_prefix" : {
26+ "BACKEND" : "django_valkey.async_cache.cache.AsyncValkeyCache" ,
27+ "LOCATION" : "valkey://127.0.0.1:6379?db=1" ,
28+ "OPTIONS" : {
29+ "CLIENT_CLASS" : "django_valkey.async_cache.client.AsyncDefaultClient"
30+ },
31+ "KEY_PREFIX" : "test-prefix" ,
32+ },
33+ }
34+
35+ INSTALLED_APPS = ["django.contrib.sessions" ]
36+
37+ USE_TZ = False
38+
39+
40+ ROOT_URLCONF = "tests.settings.urls"
You can’t perform that action at this time.
0 commit comments