Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/kombu/transport/__pycache__/redis.cpython-39.pyc
Ðазад
a o�hz� � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ ddl m Z ddlmZ ddl m Z dd lmZ dd lmZmZ ddlmZ ddlmZ dd lmZ ddlmZmZmZ ddlmZ ddlm Z m!Z! ddl"m#Z# ddl$m%Z% ddl&m'Z' ddl(m)Z) zddl*Z*W n e+�y( dZ*Y n0 zddl*m,Z, W n e+�yR dZ,Y n0 ed�Z-e-j.e-j/ Z0Z/dZ1dZ2dZ3g d�Z4edd�Z5dd� Z6dd � Z7G d!d"� d"e8�Z9e d#d$� �Z:d%d&� Z;G d'd(� d(�Z<G d)d*� d*e<e*j=�Z>G d+d,� d,e<e*j?j@�ZAG d-d.� d.e*j?jB�ZCG d/d0� d0e)jD�ZDG d1d2� d2�ZEG d3d4� d4e)jF�ZFG d5d6� d6e)jG�ZGe,�rhG d7d8� d8e,jHe*jI�ZJG d9d:� d:eF�ZKG d;d<� d<eG�ZLdS )=a� Redis transport module for Kombu. Features ======== * Type: Virtual * Supports Direct: Yes * Supports Topic: Yes * Supports Fanout: Yes * Supports Priority: Yes * Supports TTL: No Connection String ================= Connection string has the following format: .. code-block:: redis://[USER:PASSWORD@]REDIS_ADDRESS[:PORT][/VIRTUALHOST] rediss://[USER:PASSWORD@]REDIS_ADDRESS[:PORT][/VIRTUALHOST] To use sentinel for dynamic Redis discovery, the connection string has following format: .. code-block:: sentinel://[USER:PASSWORD@]SENTINEL_ADDRESS[:PORT] Transport Options ================= * ``sep`` * ``ack_emulation``: (bool) If set to True transport will simulate Acknowledge of AMQP protocol. * ``unacked_key`` * ``unacked_index_key`` * ``unacked_mutex_key`` * ``unacked_mutex_expire`` * ``visibility_timeout`` * ``unacked_restore_limit`` * ``fanout_prefix`` * ``fanout_patterns`` * ``global_keyprefix``: (str) The global key prefix to be prepended to all keys used by Kombu * ``socket_timeout`` * ``socket_connect_timeout`` * ``socket_keepalive`` * ``socket_keepalive_options`` * ``queue_order_strategy`` * ``max_connections`` * ``health_check_interval`` * ``retry_on_timeout`` * ``priority_steps`` � )�annotationsN)�bisect)� namedtuple)�contextmanager)�Empty)�time)�promise)�InconsistencyError�VersionMismatch)� get_logger)�register_after_fork)�bytes_to_str)�ERR�READ�poll)�accepts_argument)�dumps�loads)�cached_property)� cycle_by_name)� _parse_url� )�virtual)�sentinelzkombu.transport.redisi� � )r � � � �error_classes_t)�connection_errors�channel_errorsc C sb ddl m} t| d�r| j}n| j}ttjjt t jtt | j| j| j| jf tjj|| j| jf �S )z$Return tuple of redis error classes.r �� exceptions�InvalidData)�redisr"