{% extends "admin/dj_cache_panel/base.html" %} {% load i18n dcr_icons %} {% block panel_breadcrumbs %} {{ block.super }} › {{ cache_name }} {% endblock %} {% block panel_content %} {% if error %}

{% trans "Error" %}

{{ error }}
{% endif %} {% if error_message %}

{{ error_message }}

{% endif %} {% if not query_supported or not get_key_supported %}
{% if not query_supported and not get_key_supported %}

{% trans "Key Operations Not Available" %}

{% trans "This cache backend does not support listing keys or performing exact key lookups. No search functionality is available for this cache backend." %}

{% elif not query_supported %}

{% trans "Key Listing Not Available" %}

{% trans "This cache backend does not support listing all keys. You can still perform exact key lookups using the search box below." %}

{% elif not get_key_supported %}

{% trans "Key Lookup Not Available" %}

{% trans "This cache backend does not support getting key values. You can still list keys using wildcard patterns." %}

{% endif %}
{% endif %} {% trans "Back to Cache Instances" %}
{% dcr_icon "layers" %}

{{ cache_name }}

{% trans "Key Search" %} · {{ cache_config.BACKEND }}

{% if abilities.edit_key %} {% trans "Add New Key" %} {% endif %} {% if flush_supported %}
{% csrf_token %}
{% else %} {% endif %}

{% trans "Keys" %} {% if total_keys %}{{ total_keys }} {% trans "FOUND" %}{% endif %}

{% if exact_match %}

{% trans "Exact key match found." %}

{% elif total_keys %}

{% blocktrans with total=total_keys start=start_index end=end_index %}Found {{ total }} keys, showing {{ start }} to {{ end }}{% endblocktrans %}

{% endif %}
{% if query_supported or get_key_supported %}

{% if query_supported %} {% trans "Use * for wildcards, e.g., user:* or *:cache. Leave empty or use * to list all keys." %} {% elif get_key_supported %} {% trans "Enter the exact key name to look up its value." %} {% endif %}

{% if query_supported %}
{% endif %}
{% endif %}
{% if keys_data.0.redis_key %} {% endif %} {% if keys_data %} {% for key_info in keys_data %} {% if key_info.redis_key %} {% endif %} {% endfor %} {% else %} {% endif %}
{% trans "Key" %}{% trans "Redis Key" %}
{{ key_info.key }} {{ key_info.redis_key }}

{% if search_query %} {% trans "No keys found" %} {% elif not query_supported and not get_key_supported %} {% trans "No key operations available" %} {% else %} {% trans "No keys yet" %} {% endif %}

{% if search_query and not error_message %} {% trans "No keys found matching your search." %} {% elif query_supported and not search_query %} {% trans "Enter a search pattern or click Search to list all keys." %} {% elif not query_supported and not get_key_supported %} {% trans "This cache backend does not support any key search or lookup operations." %} {% endif %}

{% if total_pages > 1 %}
{{ total_keys }} {% blocktrans count counter=total_keys %}key{% plural %}keys{% endblocktrans %}
{% if has_previous %} {% trans "Previous" %} {% else %} {% trans "Previous" %} {% endif %} {% for num in page_range %} {% if num == "..." %} {% elif num == current_page %} {{ num }} {% else %} {{ num }} {% endif %} {% endfor %} {% if has_next %} {% trans "Next" %} {% else %} {% trans "Next" %} {% endif %}
{% endif %}
{% endblock %}