diff -r 9b484f4bd7e0 django/core/cache/__init__.py
|
a
|
b
|
|
| 153 | 153 | backend, location, params = parse_backend_uri(backend) |
| 154 | 154 | if backend in BACKENDS: |
| 155 | 155 | backend = 'django.core.cache.backends.%s' % BACKENDS[backend] |
| 156 | | params.update(kwargs) |
| 157 | 156 | mod = importlib.import_module(backend) |
| 158 | 157 | backend_cls = mod.CacheClass |
| 159 | 158 | else: |
| … |
… |
|
| 164 | 163 | except (AttributeError, ImportError), e: |
| 165 | 164 | raise InvalidCacheBackendError( |
| 166 | 165 | "Could not find backend '%s': %s" % (backend, e)) |
| | 166 | params.update(kwargs) |
| 167 | 167 | return backend_cls(location, params) |
| 168 | 168 | |
| 169 | 169 | cache = get_cache(DEFAULT_CACHE_ALIAS) |