Sha256: 790fa0a74487f514d9401d9d851fd92a1bcf142c10f35ef660f70805bda910fc

Contents?: true

Size: 1.23 KB

Versions: 14

Compression:

Stored size: 1.23 KB

Contents

<% @subtabs = %w( resque redis keys ) %>

<% if params[:key] %>

<%= partial resque.redis.type(params[:key]).eql?("string") ? :key_string : :key_sets %>

<% elsif params[:id] == "resque" %>

  <h1><%= resque %></h1>
  <table class='stats'>
  <% for key, value in resque.info.to_a.sort_by { |i| i[0].to_s } %>
    <tr>
      <th>
        <%= key %>
      </th>
      <td>
        <%= value %>
      </td>
    </tr>
  <% end %>
  </table>

<% elsif params[:id] == 'redis' %>

  <h1><%= resque.redis.server %></h1>
  <table class='stats'>
  <% for key, value in resque.redis.info.to_a.sort_by { |i| i[0].to_s } %>
    <tr>
      <th>
        <%= key %>
      </th>
      <td>
        <%= value %>
      </td>
    </tr>
  <% end %>
  </table>

<% elsif params[:id] == 'keys' %>

  <h1>Keys owned by <%= resque %></h1>
  <p class='sub'>(All keys are actually prefixed with "resque:")</p>
  <table class='stats'>
    <tr>
      <th>key</th>
      <th>type</th>
      <th>size</th>
    </tr>
  <% for key in resque.keys.sort %>
    <tr>
      <th>
        <a href="<%=u "/stats/keys/#{key}" %>"><%= key %></a>
      </th>
      <td><%= resque.redis.type key %></td>
      <td><%= redis_get_size key %></td>
    </tr>
  <% end %>
  </table>

<% else %>

<% end %>

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
resque-1.8.5 lib/resque/server/views/stats.erb
resque-1.8.4 lib/resque/server/views/stats.erb
resque-1.8.3 lib/resque/server/views/stats.erb
opengotham_resque-1.8.2 lib/resque/server/views/stats.erb
resque-1.8.2 lib/resque/server/views/stats.erb
resque-1.8.1 lib/resque/server/views/stats.erb
resque-mongo-1.8.1 lib/resque/server/views/stats.erb
resque-1.8.0 lib/resque/server/views/stats.erb
resque-1.7.1 lib/resque/server/views/stats.erb
resque-1.7.0 lib/resque/server/views/stats.erb
resque-1.6.1 lib/resque/server/views/stats.erb
resque-1.6.0 lib/resque/server/views/stats.erb
resque-1.5.2 lib/resque/server/views/stats.erb
resque-1.5.1 lib/resque/server/views/stats.erb