Class: Hedra::CacheCLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/hedra/cli.rb

Instance Method Summary collapse

Instance Method Details

#clearObject



135
136
137
138
139
# File 'lib/hedra/cli.rb', line 135

def clear
  cache = Cache.new
  cache.clear
  puts 'Cache cleared.'
end

#clear_expiredObject



142
143
144
145
146
# File 'lib/hedra/cli.rb', line 142

def clear_expired
  cache = Cache.new
  cache.clear_expired
  puts 'Expired cache entries cleared.'
end