Sha256: 045a07bea00789e60c494b8c52fe75495fe4e13e31b18d2e1c1929a0cc9f2a43
Contents?: true
Size: 288 Bytes
Versions: 3
Compression:
Stored size: 288 Bytes
Contents
module CacheKeeper::CachedMethod::Refreshable def refresh(instance) Rails.cache.fetch(cache_key, expires_in: expires_in) do instance.send alias_for_original_method end end def refresh_later(instance) CacheKeeper::RefreshJob.perform_later self, instance end end
Version data entries
3 entries across 3 versions & 1 rubygems