Module: RedisWebManager::KeysHelper

Defined in:
app/helpers/redis_web_manager/keys_helper.rb

Instance Method Summary collapse

Instance Method Details

#expiry_filtersObject



14
15
16
17
18
19
20
21
# File 'app/helpers/redis_web_manager/keys_helper.rb', line 14

def expiry_filters
  [%w[All all],
   ['No expiry', -1],
   ['Less than 1 hour', 3600],
   ['Less than 1 week', 604_800],
   ['Less than 1 month', 2_592_000],
   ['Less than 6 months', 15_552_000]]
end

#memory_filtersObject



23
24
25
26
27
28
29
30
31
# File 'app/helpers/redis_web_manager/keys_helper.rb', line 23

def memory_filters
  [%w[All all],
   ['Less than 1 KB', 1000],
   ['Less than 10 KB', 10_000],
   ['Less than 100 KB', 100_000],
   ['Less than 1 MB', 1_000_000],
   ['Less than 10 MB', 10_000_000],
   ['Less than 100 MB', 100_000_000]]
end

#types_filtersObject



5
6
7
8
9
10
11
12
# File 'app/helpers/redis_web_manager/keys_helper.rb', line 5

def types_filters
  [%w[All all],
   %w[String string],
   %w[Hash hash],
   %w[Set set],
   %w[Zset zset],
   %w[List list]]
end