← Back
Editing: __init__.cpython-311.pyc
� �|�e� � �� � d Z ddlmZ ddlmZmZmZmZ ddlm Z m Z ddlmZ g d�Z dZ G d� d e � � Z e� � Z e ee� � Zd � Zej � e� � dS )a Caching framework. This package defines set of cache backends that all conform to a simple API. In a nutshell, a cache is a set of values -- which can be any object that may be pickled -- identified by string keys. For the complete API, see the abstract BaseCache class in django.core.cache.backends.base. Client code should use the `cache` variable defined here to access the default cache backend and look up non-default cache backends in the `caches` dict-like object. See docs/topics/cache.txt for information on the public API. � )�signals)� BaseCache�CacheKeyWarning�InvalidCacheBackendError�InvalidCacheKey)�BaseConnectionHandler�ConnectionProxy)� import_string)�cache�caches�DEFAULT_CACHE_ALIASr r r r �defaultc �$ � e Zd ZdZeZd� Zdd�ZdS )�CacheHandler�CACHESc � � | j | � � � }|� d� � }|� dd� � } t |� � }n(# t $ r}t d|�d|��� � |�d }~ww xY w |||� � S )N�BACKEND�LOCATION� zCould not find backend 'z': )�settings�copy�popr �ImportErrorr )�self�alias�params�backend�location�backend_cls�es �</usr/lib/python3/dist-packages/django/core/cache/__init__.py�create_connectionzCacheHandler.create_connection"