{% extends "admin/base_site.html" %} {% load i18n %} {% block title %}{% trans 'Caches' %} | django-cachex{% endblock %} {% block breadcrumbs %}
{% endblock %} {% block content %}
{% csrf_token %} {% if caches_info %}
{% for cache_info in caches_info %} {% endfor %}
{{ cache_info.name }} {{ cache_info.backend }} {% if cache_info.error %}
{{ cache_info.error }} {% endif %}
{{ cache_info.location|default:"-" }} {% if cache_info.support_level == "cachex" %} cachex {% elif cache_info.support_level == "wrapped" %} wrapped {% else %} limited {% endif %} {% trans 'List Keys' %}
{% endif %}
{% if not has_caches_configured %}

{% trans 'Cache Configuration Required' %}

{% trans 'To use Cache Admin, you must configure caches in your Django settings.' %}

CACHES = {
    "default": {
        "BACKEND": "django_cachex.cache.ValkeyCache",
        "LOCATION": "valkey://127.0.0.1:6379/0",
    }
}
{% endif %}
{% endblock %} {% block footer %}
{{ caches_info|length }} {% blocktrans count counter=caches_info|length %}cache{% plural %}caches{% endblocktrans %}
{% endblock %}