🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 01:17:43 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clwpos
/
object_cache
/
__pycache__
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/object_cache/__pycache__
🔄 Refresh
✏️
Editing: reloader_redis_lib.cpython-311.pyc
Read Only
� ��� �0�"� �, � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZm Z d dl mZ d dlm Z d dlmZ d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ d dlmZmZ d d lmZmZ d dl m!Z!m"Z" d dl#m$Z$ d dl%m&Z& d dl'm(Z(m)Z)m*Z* d dl+m,Z, d dl-m.Z. dZ/ e,� � Z0de1de1fd�Z2de1de1de1de1de1de1de1fd�Z3dede1de1d ee1 dee1 f d!�Z4dede1d"e5de1d#e6de7fd$�Z8d%e7de1ddfd&�Z9d'ede1de1de6fd(�Z:d)e5de7fd*�Z; d0de1d)e5d'e e d-e7d.e1de6fd/�Z<dS )1� N)�Logger)�List�Optional)�write_file_via_tempfile)�drop_user_privileges)�userdomains)�Feature)�is_panel_feature_supported)�demote)�gettext)� WposError)�&_get_redis_pid_from_pid_file_with_wait�kill_process_by_pid)� USER_WPOS_DIR�is_run_under_user)� UserConfig�ConfigError)�OBJECT_CACHE_FEATURE)�get_allowed_modules)�REDIS_SERVER_BIN_FILE�MAXIMUM_MAX_CACHE_MEMORY�MINIMUM_MAX_CACHE_MEMORY)� NullLogger)� NoPackageaS # !!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT maxclients {maxclients} databases 16 maxmemory-policy allkeys-lru appendonly no appendfsync always loglevel warning logfile {logfile} # Disable TCP ports using port 0 unixsocket {socket_path} unixsocketperm 600 dir {clwpos_dir} maxmemory {maxmemory} save "" pidfile {pidfile} �redis_config_path�returnc �D � t j � | � � r�t | � � 5 }|� � � }t j d|t j �� � }|�!|� d� � cddd� � S ddd� � n# 1 swxY w Y dS )a Read and return maxclients value from the Redis config file if config file exists maxclients is integer value. Return default value otherwise. :param redis_config_path: path to Redis configuration file :return: maxclients value from config or default zmaxclients (\d+)$)�flagsN� �16) �os�path�exists�open�read�re�search� MULTILINE�group)r �redis_config�config�values �,py/clwpos/object_cache/reloader_redis_lib.py�_read_maxclients_from_configr. = s� � � �w�~�~�'�(�(� &� �#� $� $� &��!�&�&�(�(�F��I�2�F�"�,�O�O�O�E�� ��{�{�1�~�~� &� &� &� &� &� &� &� &� !� &� &� &� &� &� &� &� &� &� &� &���� &� &� &� &� �4s �AB�B�B�username�user_homedir� clwpos_dir�redis_socket_path� maxmemory�pidfile_pathc � � t |� � }t j dt |� � t j � � }|�9t t |� d� � � � cxk rt k sn t j }t � |t j � t j � |� � d� � ||||�� � } t j � |t"