Module: ArtirixDataModels::CachedActionAdaptor::GetFull::WithoutTimestamp

Defined in:
lib/artirix_data_models/cached_action_adaptor/get_full.rb

Class Method Summary collapse

Class Method Details

.cache_key_from_model(model) ⇒ Object



67
68
69
# File 'lib/artirix_data_models/cached_action_adaptor/get_full.rb', line 67

def self.cache_key_from_model(model)
  ArtirixDataModels::CacheService.key :dao_get_full_no_time, model
end

.cache_options(dao_name) ⇒ Object



71
72
73
74
75
76
77
78
# File 'lib/artirix_data_models/cached_action_adaptor/get_full.rb', line 71

def self.cache_options(dao_name)
  ArtirixDataModels::CacheService.first_options "dao_#{dao_name}_get_full_options",
                                                "dao_#{dao_name}_get_full_no_time_options",
                                                'dao_get_full_no_time_options',
                                                "dao_#{dao_name}_options",
                                                'dao_get_full_options',
                                                return_if_missing: :default
end