module ActiveCash::ClassMethods
Public Instance Methods
cache_opts()
click to toggle source
# File lib/active_cash.rb, line 22 def cache_opts @cache_opts end
caches(type, opts = {})
click to toggle source
# File lib/active_cash.rb, line 15 def caches(type, opts = {}) name = opts[:name] || opts[:as] || type.to_sym @cache_opts = Utils.build_cache_opts(type, opts, @cache_opts, self.to_s) Utils.set_callbacks(self, @cache_opts[name]) Utils.create_methods(self, @cache_opts[name]) end