Files
adamantium/app/actions/blogroll/list.rb
2024-02-11 14:40:46 +11:00

16 lines
344 B
Ruby

require "time_math"
module Adamantium
module Actions
module Blogroll
class List < Action
include Deps["views.blogroll.list"]
def handle(req, res)
res.body = cache(key: "blogroll", content_proc: -> { list.call.to_str }, expiry: TimeMath.min.advance(Time.now, +60))
end
end
end
end
end