<%= erb File.read(File.join(view_path, '_home_nav.erb')) %>
<% if @locks_available %>
<% if @locks.length > 0 %>
Key |
Owner Node |
Timetamp |
TTL |
Actions |
<% @locks.each do |meta| %>
<% pttl = meta.pttl %>
<%= meta.key %> |
<%= meta.owner %> |
<%= meta.timestamp.to_i %> |
<%= pttl / 1000 %> s
|
|
<% end %>
<% else %>
No locks set.
<% end %>
<% else %>
KEYS command is disabled in your redis instance, lock information is not available.
<% end %>