-
Notifications
You must be signed in to change notification settings - Fork 143
/
Copy pathsettings_benchmark.py
39 lines (38 loc) · 1.04 KB
/
settings_benchmark.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from .settings import * # noqa
CACHES = {
'default': {
'BACKEND': 'diskcache.DjangoCache',
'LOCATION': CACHE_DIR, # noqa
},
'memcached': {
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
'LOCATION': '127.0.0.1:11211',
},
'redis': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': 'redis://127.0.0.1:6379/1',
'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
},
},
'filebased': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '/tmp/django_cache',
'OPTIONS': {
'CULL_FREQUENCY': 10,
'MAX_ENTRIES': 1000,
},
},
'locmem': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'diskcache',
'OPTIONS': {
'CULL_FREQUENCY': 10,
'MAX_ENTRIES': 1000,
},
},
'diskcache': {
'BACKEND': 'diskcache.DjangoCache',
'LOCATION': 'tmp',
},
}