{% extends "admin/base_site.html" %} {% load i18n static %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block bodyclass %}{{ block.super }} app-django_cachex model-cache change-form{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
{% if info_data %}

{% trans 'Configuration' %}

{% trans 'Backend' %} {{ info_data.backend }}
{% trans 'Location' %} {{ info_data.location|default:"-" }}
{% trans 'Key Prefix' %} {{ info_data.key_prefix|default:"-" }}
{% trans 'Version' %} {{ info_data.version }}
{% trans 'Support' %} {{ cache_obj.support_level }}
{% if info_data.server %}

{% trans 'Server' %}

{% if info_data.server.redis_version %} {% endif %} {% if info_data.server.os %} {% endif %} {% if info_data.server.arch_bits %} {% endif %} {% if info_data.server.tcp_port %} {% endif %} {% if info_data.server.uptime_in_days is not None %} {% endif %} {% if info_data.server.process_id %} {% endif %}
{% trans 'Redis/Valkey Version' %} {{ info_data.server.redis_version }}
{% trans 'Operating System' %} {{ info_data.server.os }}
{% trans 'Architecture' %} {{ info_data.server.arch_bits }}-bit
{% trans 'TCP Port' %} {{ info_data.server.tcp_port }}
{% trans 'Uptime' %} {{ info_data.server.uptime_in_days }} {% trans 'days' %} ({{ info_data.server.uptime_in_seconds }} {% trans 'seconds' %})
{% trans 'Process ID' %} {{ info_data.server.process_id }}
{% endif %} {% if info_data.memory %}

{% trans 'Memory' %}

{% if info_data.memory.used_memory_human %} {% endif %} {% if info_data.memory.used_memory_peak_human %} {% endif %} {% if info_data.memory.maxmemory %} {% endif %} {% if info_data.memory.maxmemory_policy %} {% endif %}
{% trans 'Used Memory' %} {{ info_data.memory.used_memory_human }} ({{ info_data.memory.used_memory }} bytes)
{% trans 'Peak Memory' %} {{ info_data.memory.used_memory_peak_human }} ({{ info_data.memory.used_memory_peak }} bytes)
{% trans 'Max Memory' %} {{ info_data.memory.maxmemory_human|default:info_data.memory.maxmemory }}
{% trans 'Eviction Policy' %} {{ info_data.memory.maxmemory_policy }}
{% endif %} {% if info_data.clients %}

{% trans 'Clients' %}

{% if info_data.clients.connected_clients is not None %} {% endif %} {% if info_data.clients.blocked_clients is not None %} {% endif %}
{% trans 'Connected Clients' %} {{ info_data.clients.connected_clients }}
{% trans 'Blocked Clients' %} {{ info_data.clients.blocked_clients }}
{% endif %} {% if info_data.stats %}

{% trans 'Statistics' %}

{% if info_data.stats.total_connections_received is not None %} {% endif %} {% if info_data.stats.total_commands_processed is not None %} {% endif %} {% if info_data.stats.instantaneous_ops_per_sec is not None %} {% endif %} {% if info_data.stats.keyspace_hits is not None %} {% endif %} {% if info_data.stats.keyspace_misses is not None %} {% endif %} {% if info_data.stats.expired_keys is not None %} {% endif %} {% if info_data.stats.evicted_keys is not None %} {% endif %}
{% trans 'Total Connections' %} {{ info_data.stats.total_connections_received }}
{% trans 'Total Commands' %} {{ info_data.stats.total_commands_processed }}
{% trans 'Ops/sec' %} {{ info_data.stats.instantaneous_ops_per_sec }}
{% trans 'Keyspace Hits' %} {{ info_data.stats.keyspace_hits }}
{% trans 'Keyspace Misses' %} {{ info_data.stats.keyspace_misses }}
{% trans 'Expired Keys' %} {{ info_data.stats.expired_keys }}
{% trans 'Evicted Keys' %} {{ info_data.stats.evicted_keys }}
{% endif %} {% if info_data.keyspace %}

{% trans 'Keyspace' %}

{% for db_name, db_stats in info_data.keyspace.items %}

{{ db_name }}

{% if db_stats.keys is not None %}
{% trans 'Keys' %} {{ db_stats.keys }}
{% endif %} {% if db_stats.expires is not None %}
{% trans 'Expires' %} {{ db_stats.expires }}
{% endif %} {% if db_stats.avg_ttl is not None %}
{% trans 'Avg TTL' %} {{ db_stats.avg_ttl }}ms
{% endif %}
{% endfor %}
{% endif %} {% if raw_info_json %}

{% trans 'Raw Info' %}

{% endif %} {% endif %} {% if slowlog_data %}

{% trans 'Slow Log' %}

{% if slowlog_data.error %}

{{ slowlog_data.error }}

{% elif slowlog_data.entries %}
{% for entry in slowlog_data.entries %} {% endfor %}
{% trans 'ID' %} {% trans 'Time' %} {% trans 'Duration' %} {% trans 'Command' %} {% trans 'Client' %}
{{ entry.id }} {% if entry.timestamp %} {{ entry.timestamp|date:"Y-m-d H:i:s" }} {% else %} - {% endif %} {% if entry.duration_us >= 1000000 %} {{ entry.duration_us|floatformat:0 }} µs ({{ entry.duration_us|divisibleby:1000000 }}s) {% elif entry.duration_us >= 1000 %} {{ entry.duration_us }} µs ({{ entry.duration_us|floatformat:0 }}ms) {% else %} {{ entry.duration_us }} µs {% endif %} {% for arg in entry.command %}{{ arg }} {% endfor %} {% if entry.client %}{{ entry.client }}{% endif %} {% if entry.client_name %}
{{ entry.client_name }}{% endif %}
{% else %}

{% trans 'No slow queries recorded.' %}

{% endif %}
{% endif %}
{% trans 'Back' %}
{% endblock %}