{% extends "admin/base_site.html" %} {% load i18n static %} {% block title %}{{ key }} | django-cachex{% endblock %} {% block breadcrumbs %}
{% endblock %} {% block content %}

{{ key }}

{% if not key_exists %}

{% trans 'This key does not exist in the cache.' %}

{% endif %}

{% trans 'Key Information' %}

{% if key_type %} {% endif %}
{% trans 'Key' %} {{ key }}
{% trans 'Cache' %} {{ cache_name }} {% if cache_metadata.location or cache_metadata.key_prefix or cache_metadata.version != 1 %} ({% if cache_metadata.location %}{{ cache_metadata.location }}{% if cache_metadata.key_prefix or cache_metadata.version != 1 %}, {% endif %}{% endif %}{% 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 %}
{% trans 'Raw Key' %} {{ raw_key }}
{% trans '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 %}
{% trans 'TTL (s)' %}
{% csrf_token %}
{% if create_mode %}

{% trans 'This key does not exist yet. Use the operations below to add your first item and create the key.' %}

{% endif %} {% if key_exists or create_mode %} {% if key_type == 'list' %} {% include "unfold/django_cachex/key/key_detail_list.html" %}
{% trans 'Close' %}
{% elif key_type == 'hash' %} {% include "unfold/django_cachex/key/key_detail_hash.html" %}
{% trans 'Close' %}
{% elif key_type == 'set' %} {% include "unfold/django_cachex/key/key_detail_set.html" %}
{% trans 'Close' %}
{% elif key_type == 'zset' %} {% include "unfold/django_cachex/key/key_detail_zset.html" %}
{% trans 'Close' %}
{% elif key_type == 'stream' %} {% include "unfold/django_cachex/key/key_detail_stream.html" %}
{% trans 'Close' %}
{% else %} {% include "unfold/django_cachex/key/key_detail_string.html" %}
{% trans 'Close' %}
{% endif %} {% endif %} {% if key_exists %} {% endif %}
{% endblock %}