resque/resque-web

View on GitHub
app/views/resque_web/stats/keys.html.erb

Summary

Maintainability
Test Coverage
  <h1>Keys owned by <%= Resque %></h1>
  <p class="sub">(All keys are actually prefixed with "<%= Resque.redis.namespace %>:")</p>

  <table class="table table-bordered stats">
    <tr>
      <th>key</th>
      <th>type</th>
      <th>size</th>
    </tr>
  <% Resque.keys.sort.each do |key| %>
    <tr>
      <th><%= link_to key, keys_statistic_path(key) %></th>
      <td><%= redis_key_type key %></td>
      <td><%= redis_key_size key %></td>
    </tr>
  <% end %>
  </table>