{% 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 }}) › {% trans "Add New Key" %} {% endblock %} {% block panel_content %} {% if success_message %}

{{ success_message }}

{% endif %} {% if error_message %}

{% trans "Error" %}

{{ error_message }}

{% endif %} {% trans "Back to Key Search" %}
{% dcr_icon "database" %}

{% trans "Add New Key" %}

{{ instance_alias }}::DB{{ selected_db }}

{% if not allow_key_edit %}

{% trans "Key creation is disabled for this instance" %}

{% trans "Enable ALLOW_KEY_EDIT in your configuration to create new keys." %}

{% else %}

{% trans "Redis Key Types:" %}

{% trans "Type" %} {% trans "Description" %} {% trans "Use Cases" %}
{% trans "String" %} {% trans "Simple text or binary data value" %} {% trans "Caching, counters, flags, JSON data" %}
{% trans "List" %} {% trans "Ordered collection of strings" %} {% trans "Queues, activity feeds, recent items" %}
{% trans "Set" %} {% trans "Unordered collection of unique strings" %} {% trans "Tags, unique visitors, permissions" %}
{% trans "Sorted Set" %} {% trans "Ordered collection of unique strings with scores" %} {% trans "Leaderboards, rankings, time-series data" %}
{% trans "Hash" %} {% trans "Collection of field-value pairs" %} {% trans "User profiles, settings, object storage" %}

{% trans "The key will be created with a placeholder item that you can edit or delete. After creation, you will be redirected to the key detail page where you can manage the content." %}

{% csrf_token %}

{% trans "The name for your new Redis key. Must be unique within this database." %}

{% trans "Select the type of Redis data structure for this key." %}

{% endif %} {% endblock %}