{% extends "admin/dj_redis_panel/base.html" %} {% load i18n admin_urls static %} {% block breadcrumbs %}
{% endblock %} {% block content %}{% trans 'Error:' %} {{ error_message }}
{% if use_cursor_pagination %}
{% if showing_keys > 0 %}
{% blocktrans with count=showing_keys %}Showing {{ count }} keys{% endblocktrans %}
{% if has_next %} - {% trans 'more available' %}{% endif %}
{% if current_cursor > 0 %}
{% trans 'Cursor position' %}: {{ current_cursor }}{% endif %}
{% else %}
{% trans 'No keys found matching your search pattern.' %}
{% endif %}
{% else %}
{% if total_keys > 0 %}
{% blocktrans with total=total_keys start=start_index end=end_index %}Found {{ total }} keys, showing {{ start }} to {{ end }}{% endblocktrans %}
{% if total_keys >= 100000 %}
{% trans 'Search limited to first 100,000 matching keys. Refine your search pattern for more specific results.' %}
{% endif %}
{% else %}
{% trans 'No keys found matching your search pattern.' %}
{% endif %}
{% endif %}
| {% trans 'Key' %} | {% trans 'Type' %} | {% trans 'Size/Length' %} | {% trans 'TTL' %} | {% trans 'Actions' %} |
|---|---|---|---|---|
| {{ key_info.key }} | {{ key_info.type|upper }} | {% if key_info.type == 'string' %} {{ key_info.size }} {% trans 'bytes' %} {% else %} {{ key_info.size }} {% trans 'items' %} {% endif %} | {% if key_info.ttl %} {{ key_info.ttl }}s {% else %} {% trans 'No expiry' %} {% endif %} | {% trans 'View' %} |
{% if use_cursor_pagination %} {% if current_cursor > 0 %} {% trans 'first' %} {% endif %} {% if has_next %} {% trans 'next' %} {% endif %} {% if total_keys > 0 %} {% trans 'Cursor-based pagination' %} - {{ showing_keys }} {% trans 'keys shown' %} {% if has_next %} ({% trans 'more available' %}){% endif %} {% endif %} {% else %} {% if total_pages > 1 %} {% if has_previous %} {% trans 'previous' %} {% endif %} {% for num in page_range %} {% if num == "..." %} … {% elif num == current_page %} {{ num }} {% else %} {{ num }} {% endif %} {% endfor %} {% if has_next %} {% trans 'next' %} {% endif %} {% endif %} {{ total_keys }} {% blocktrans count counter=total_keys %}key{% plural %}keys{% endblocktrans %} {% endif %}