{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if profiler_markup_version == 1 %} {% set icon %} Redis {{ collector.commandcount }} {% endset %} {% set text %}
Queries {{ collector.commandcount }}
Query time {{ '%0.2f'|format(collector.time) }} ms
{% if collector.erroredCommandsCount > 0 %}
Failed Queries {{ collector.erroredCommandsCount }}
{% endif %} {% endset %} {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url, status: collector.erroredCommandsCount > 0 ? 'red' : '' } %} {% elseif collector.commandcount > 0 %} {% set icon %} {{ include('@SncRedis/Collector/icon.svg.twig') }} {{ collector.commandCount }} in {{ '%0.2f'|format(collector.time) }} ms {% endset %} {% set text %}
Queries {{ collector.commandcount }}
Query time {{ '%0.2f'|format(collector.time) }} ms
{% if collector.erroredCommandsCount > 0 %}
Failed Queries {{ collector.erroredCommandsCount }}
{% endif %} {% endset %} {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url, status: collector.erroredCommandsCount > 0 ? 'red' : '' } %} {% endif %} {% endblock %} {% block menu %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if profiler_markup_version == 1 %} Redis Redis {{ collector.commandcount }} {{ '%0.0f'|format(collector.time) }} ms {% else %} {{ include('@SncRedis/Collector/icon.svg.twig', {colors: {light: '#DDD', dark: '#999'}}) }} Redis {% if collector.erroredCommandsCount > 0 %} {{ collector.erroredCommandsCount }} {% endif %} {% endif %} {% endblock %} {% block panel %} {% set profiler_markup_version = profiler_markup_version|default(1) %}

Commands

{% if collector.commandcount == 0 %}
No commands were executed or the logger is disabled.

{% else %}
{{ collector.commandcount }} Queries
{{ '%0.2f'|format(collector.time) }} ms Query time
{{ collector.erroredCommandsCount }} Failed Queries
{% for command in collector.commands %} {% endfor %}
# Time Connection Command
{{ loop.index }} {{ '%0.2f'|format(command.executionMS) }} ms {{ command.conn }} {{ command.cmd }} {% if command.error %}
An error occured: {{ command.error }} {% endif %}
{% endif %} {% endblock %}