{% extends "admin/dj_redis_panel/base.html" %} {% load i18n static dcr_icons %} {% block panel_breadcrumbs %} {{ block.super }} › {{ instance_alias }} › {% trans "Search Keys" %} (db:{{ selected_db }}) {% endblock %} {% block panel_content %} {% if success_message %}
{{ success_message }}
{% trans "Error" %}
{{ error_message }}
{% trans "Search Redis Keys" %}
{% if not 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 %} {% endif %}
| {% trans "Key" %} | {% trans "Type" %} | {% trans "Size/Length" %} | {% trans "TTL" %} |
|---|---|---|---|
| {{ 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 "No keys found" %}{% trans "No keys matched your search pattern. Try a broader pattern." %} |
|||