{% from "macros.html" import icon %}
{% if not s.ok %}
{{ icon('warn', 'w-3.5 h-3.5') }} redis unreachable
{% else %}
{{ icon('db', 'w-3.5 h-3.5') }}
redis {{ s.version }}
used
{{ s.used_human }}{% if s.maxmemory %} / {{ s.max_human }} · {{ s.mem_pct }}%{% endif %}
free
{{ s.available_human }}{% if s.available_pct is not none %} · {{ s.available_pct }}%{% endif %}
{{ icon('key', 'w-3.5 h-3.5') }}
{{ s['keys']|comma }} keys
{{ icon('users', 'w-3.5 h-3.5') }}
{{ s.clients }} clients
{{ icon('pulse', 'w-3.5 h-3.5') }}
{{ s.ops }} ops/s
{% if not s.policy_ok %}{{ icon('warn', 'w-3.5 h-3.5') }}{% endif %}
policy {{ s.policy }}
{% endif %}