module LuckyCache::HtmlHelpers

Defined in:

lucky_cache/html_helpers.cr

Instance Method Summary

Instance Method Detail

def cache(key, *, expires_in : Time::Span | Nil, &) #

Use this in your Lucky Page class.

cache("some_key", expires_in: 5.minutes) do
  div do
    text "Data"
  end
end

[View source]