✏️ 正在编辑: bccache.cpython-311.pyc
路径:
/opt/cloudlinux/venv/lib/python3.11/site-packages/jinja2/__pycache__/bccache.cpython-311.pyc
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
� �|oi~1 � � � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddlmZ ddl mZ ddlmZ e j rddlZddlmZ G d� d ej � � Zd Zd ej ed� � z ej ej d d z ej d z d� � z Z G d� d� � Z G d� d� � Z G d� de� � Z G d� de� � ZdS )a The optional bytecode cache system. This is useful if you have very complex template situations and the compilation of all those templates slows down your application too much. Situations where this is useful are often forking web applications that are initialized on the first request. � N)�sha1)�BytesIO)�CodeType� )�Environmentc �N � e Zd Zdedefd�Zddededej e ddfd�Z dS ) �_MemcachedClient�key�returnc � � d S �N� )�selfr s �E/opt/cloudlinux/venv/lib64/python3.11/site-packages/jinja2/bccache.py�getz_MemcachedClient.get � � ��C� N�value�timeoutc � � d S r r )r r r r s r �setz_MemcachedClient.set r r r ) �__name__� __module__�__qualname__�str�bytesr �t�Optional�intr r r r r r sr � � � � � � �3� �5� � � � � � �3� �u� �q�z�#�� �RV� � � � � � r r � s j2� � c � � e Zd ZdZdddededdfd�Zdd �Zd ej ddfd�Z d ej ddfd�Z d eddfd�Zdefd�Z dS )�Bucketau Buckets are used to store the bytecode for one template. It's created and initialized by the bytecode cache and passed to the loading functions. The buckets get an internal checksum from the cache assigned and use this to automatically reject outdated cache material. Individual bytecode cache subclasses don't have to care about cache invalidation. �environmentr r �checksumr Nc �X � || _ || _ || _ | � � � d S r )r% r r&