module Apicraft::Concerns::Cacheable
def self.cache
def self.cache @cache end
def with_cache(key)
def with_cache(key) data = Cacheable.cache[key] return data[:content] if data.present? c = yield Cacheable.cache[key] = { content: c } if c.present? c end