{% extends "admin/base_site.html" %} {% load i18n l10n static django_cachex_admin %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block bodyclass %}{{ block.super }} app-django_cachex model-key change-form{% endblock %} {% block breadcrumbs %} {% url "admin:index" as index_href %} {% url "admin:django_cachex_cache_changelist" as cache_list_href %} {% cachex_breadcrumbs _("Home") index_href _("Caches") cache_list_href cache_name key_list_href key %} {% endblock %} {% block object-tools %}{% include "admin/django_cachex/key/_object_tools.html" %}{% endblock %} {% block content %} {% cachex_tools_in_header as tools_in_header %} {% if not tools_in_header %}{% include "admin/django_cachex/key/_object_tools.html" %}{% endif %}

{% trans "Key Information" %}

{{ key }}
{{ cache_name }} {% if cache_metadata.key_prefix or cache_metadata.version != 1 %} ({% if cache_metadata.key_prefix %}prefix: {{ cache_metadata.key_prefix }}{% if cache_metadata.version != 1 %}, {% endif %}{% endif %}{% if cache_metadata.version != 1 %}version: {{ cache_metadata.version }}{% endif %}) {% endif %}
{{ raw_key }}
{% if key_type %}
{{ key_type }} {% if type_data.length is not None %} ({{ type_data.length }} {% if key_type == "hash" %}{% trans "fields" %}{% elif key_type == "list" %}{% trans "items" %}{% else %}{% trans "members" %}{% endif %}) {% endif %}
{% endif %}
{% if can_mutate %}
{% csrf_token %} {% trans "Seconds until the key expires. 0 removes the expiry." %}
{% else %} {% if ttl is not None and ttl >= 0 %}{{ ttl|unlocalize }}{% else %}{% trans "no expiry" %}{% endif %} {% endif %}
{% if type_data.error %}

{% blocktrans with error=type_data.error %}Could not load value for this key: {{ error }}{% endblocktrans %}

{% endif %} {% if opaque_type %} {% include "admin/django_cachex/key/key_detail_opaque.html" %} {% elif key_type == "list" %} {% include "admin/django_cachex/key/key_detail_list.html" %} {% elif key_type == "hash" %} {% include "admin/django_cachex/key/key_detail_hash.html" %} {% elif key_type == "set" %} {% include "admin/django_cachex/key/key_detail_set.html" %} {% elif key_type == "zset" %} {% include "admin/django_cachex/key/key_detail_zset.html" %} {% elif key_type == "stream" %} {% include "admin/django_cachex/key/key_detail_stream.html" %} {% else %} {% include "admin/django_cachex/key/key_detail_string.html" %} {% endif %} {% include "admin/django_cachex/key/_key_detail_actions.html" %} {% if can_delete %} {% endif %}
{% endblock %}