Download diskcache/modified_testcases/settings_benchmark.py from Dorothydu/gitrepo_top_sample_50: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/datasets/Dorothydu/gitrepo_top_sample_50/resolve/main/diskcache/modified_testcases/settings_benchmark.py
- Command line
-
hf download hf://datasets/Dorothydu/gitrepo_top_sample_50/diskcache/modified_testcases/settings_benchmark.py
-
curl -L -o settings_benchmark.py https://huggingface.co/datasets/Dorothydu/gitrepo_top_sample_50/resolve/main/diskcache/modified_testcases/settings_benchmark.py
1.07 kB
| 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', | |
| }, | |
| } | |