← Back
Editing: db.cpython-311.pyc
� �|�e7+ � � � d Z ddlZddlZddlmZ ddlmZ ddlmZmZ ddl m Z mZmZm Z mZ ddlmZ G d� d � � Z G d � de� � Z G d� d e� � ZdS )zDatabase cache backend.� N)�datetime)�settings)�DEFAULT_TIMEOUT� BaseCache)� DatabaseError�connections�models�router�transaction)�timezonec � � e Zd ZdZd� ZdS )�Optionsz~A class that will quack like a Django model _meta class. This allows cache operations to be controlled by the router c � � || _ d| _ d| _ d| _ d| _ d| _ d| _ d| _ d| _ d| _ d S )N�django_cache� cacheentryzcache entryz cache entries� CacheEntryFT) �db_table� app_label� model_name�verbose_name�verbose_name_plural�object_name�abstract�managed�proxy�swapped)�self�tables �?/usr/lib/python3/dist-packages/django/core/cache/backends/db.py�__init__zOptions.__init__ sO � ��� �'���&���)���#2�� �'����� ������ ������ N)�__name__� __module__�__qualname__�__doc__r � r! r r r s- � � � � � �� � � � � � r! r c � � � e Zd Z� fd�Z� xZS )�BaseDatabaseCachec � ��� t � � � |� � �| _ G �fd�d� � }|| _ d S )Nc �&