Module: CacheCow::ActsAsCached::ClassMethods

Defined in:
lib/cache_cow/acts_as_cached.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_cachedObject



7
8
9
10
# File 'lib/cache_cow/acts_as_cached.rb', line 7

def acts_as_cached
  include Cacheable
  include CachedIdList
end

#acts_as_cached_optionsObject



12
13
14
# File 'lib/cache_cow/acts_as_cached.rb', line 12

def acts_as_cached_options
  @acts_as_cached_options ||= {}
end

#acts_as_cached_versionObject



16
17
18
# File 'lib/cache_cow/acts_as_cached.rb', line 16

def acts_as_cached_version
  acts_as_cached_options[:version] || 1
end