Module: RailsCachedMethod::CachedProxyExt

Defined in:
lib/rails_cached_method.rb

Instance Method Summary collapse

Instance Method Details

#cached(key: nil, expires_in: 1.minute, recache: false) ⇒ Object



60
61
62
63
64
65
66
67
# File 'lib/rails_cached_method.rb', line 60

def cached(key: nil, expires_in: 1.minute, recache: false)
  CachedProxy.new(
    self,
    key: key,
    expires_in: expires_in,
    recache: recache
  )
end