<% @subtabs = %w( resque redis keys ) %> <% if params[:key] %> <%= partial resque.redis.type(params[:key]).eql?("string") ? :key_string : :key_sets %> <% elsif params[:id] == "resque" %>

<%= resque %>

<% for key, value in resque.info.to_a.sort_by { |i| i[0].to_s } %> <% end %>
<%= key %> <%= value %>
<% elsif params[:id] == 'redis' %>

<%= resque.redis.server %>

<% for key, value in resque.redis.info.to_a.sort_by { |i| i[0].to_s } %> <% end %>
<%= key %> <%= value %>
<% elsif params[:id] == 'keys' %>

Keys owned by <%= resque %>

(All keys are actually prefixed with "resque:")

<% for key in resque.keys.sort %> <% end %>
key type size
"><%= key %> <%= resque.redis.type key %> <%= redis_get_size key %>
<% else %> <% end %>