Sha256: 42a38c71c807231aa38b3b25fe7b6c0151cb65d07170bc92b18a7a3dfd321e5c

Contents?: true

Size: 1.25 KB

Versions: 185

Compression:

Stored size: 1.25 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_id %></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.redis.namespace %>:")</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

185 entries across 140 versions & 14 rubygems

Version Path
resque-1.25.1 lib/resque/server/views/stats.erb
resque-1.25.0 lib/resque/server/views/stats.erb
resque-1.25.0.pre lib/resque/server/views/stats.erb
classiccms-0.7.2 vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/stats.erb
classiccms-0.7.2 vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/stats.erb
classiccms-0.7.1 vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/stats.erb
classiccms-0.7.1 vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/stats.erb
rewritten-0.10.0 lib/rewritten/server/views/stats.erb
rewritten-0.9.1 lib/rewritten/server/views/stats.erb
classiccms-0.7.0 vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/stats.erb
classiccms-0.7.0 vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/stats.erb
rewritten-0.9.0 lib/rewritten/server/views/stats.erb
rewritten-0.8.2 lib/rewritten/server/views/stats.erb
rewritten-0.8.1 lib/rewritten/server/views/stats.erb
rewritten-0.8.0 lib/rewritten/server/views/stats.erb
rewritten-0.7.0 lib/rewritten/server/views/stats.erb
rewritten-0.6.0 lib/rewritten/server/views/stats.erb
rewritten-0.5.0 lib/rewritten/server/views/stats.erb
rewritten-0.4.0 lib/rewritten/server/views/stats.erb
resque-1.24.1 lib/resque/server/views/stats.erb