Sha256: 278105e2099b60f4568b9b30f8b40273781373ff3e2bee095fc60a5dab61c1f6
Contents?: true
Size: 1.27 KB
Versions: 3
Compression:
Stored size: 1.27 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><%= h 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> <%= h value %> </td> </tr> <% end %> </table> <% elsif params[:id] == 'redis' %> <h1><%= h resque.redis_id %></h1> <table class='stats'> <% for key, value in resque.redis.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 <%= h resque.redis_id %></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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
resque-2.7.0 | lib/resque/server/views/stats.erb |
resque-2.6.0 | lib/resque/server/views/stats.erb |
resque-2.5.0 | lib/resque/server/views/stats.erb |