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_admin-1.0.4 lib/resque_admin/server/views/stats.erb
resque_admin-1.0.3 lib/resque/server/views/stats.erb
resque_admin-1.0.2 lib/resque/server/views/stats.erb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/resque-1.27.4/lib/resque/server/views/stats.erb
resque-1.27.4 lib/resque/server/views/stats.erb
resque-1.27.3 lib/resque/server/views/stats.erb
resque-1.27.2 lib/resque/server/views/stats.erb
resque-1.27.1 lib/resque/server/views/stats.erb
resque-1.27.0 lib/resque/server/views/stats.erb
resqueue-1.0.0 lib/resque/server/views/stats.erb
resque-master-0.0.3 lib/resque/server/views/stats.erb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/resque-1.26.0/lib/resque/server/views/stats.erb
rewritten-0.16.5 lib/rewritten/server/views/stats.erb
rewritten-0.16.4 lib/rewritten/server/views/stats.erb
rewritten-0.16.3 lib/rewritten/server/views/stats.erb
rewritten-0.16.2 lib/rewritten/server/views/stats.erb
resque-1.26.0 lib/resque/server/views/stats.erb
rewritten-0.16.1 lib/rewritten/server/views/stats.erb
classiccms-0.7.5 vendor/bundle/gems/resque-1.20.0/lib/resque/server/views/stats.erb
classiccms-0.7.5 vendor/bundle/gems/resque-mongo-1.9.8.1/lib/resque/server/views/stats.erb