module Erector::Caching::ClassMethods
Public Instance Methods
cacheable(*args)
click to toggle source
# File lib/erector/caching.rb, line 8 def cacheable(*args) options = args.extract_options! @cacheable_opts = { static_keys: args, dynamic_keys: if options[:needs_keys] needed_variables & options[:needs_keys] else needed_variables end, skip_digest: options[:skip_digest] } end
cacheable_opts()
click to toggle source
# File lib/erector/caching.rb, line 22 def cacheable_opts @cacheable_opts end