% @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 } %>
<%= key %>
|
<%= value %>
|
<% end %>
<% elsif params[:id] == 'redis' %>
<%= resque.redis.server %>
<% for key, value in resque.redis.info.to_a.sort_by { |i| i[0].to_s } %>
<%= key %>
|
<%= value %>
|
<% end %>
<% elsif params[:id] == 'keys' %>
Keys owned by <%= resque %>
(All keys are actually prefixed with "resque:")
key |
type |
size |
<% for key in resque.keys.sort %>
"><%= key %>
|
<%= resque.redis.type key %> |
<%= redis_get_size key %> |
<% end %>
<% else %>
<% end %>