Class: Prestashop::Client::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/prestashop/client/cache.rb

Instance Method Summary collapse

Instance Method Details

#categories_cacheObject


12
13
14
# File 'lib/prestashop/client/cache.rb', line 12

def categories_cache
  @categories_cache ||= Mapper::Category.cache
end

#clear_categories_cacheObject


16
17
18
# File 'lib/prestashop/client/cache.rb', line 16

def clear_categories_cache
  @categories_cache = nil
end

#clear_feature_values_cacheObject


32
33
34
# File 'lib/prestashop/client/cache.rb', line 32

def clear_feature_values_cache
  @feature_values_cache = nil
end

#clear_features_cacheObject


24
25
26
# File 'lib/prestashop/client/cache.rb', line 24

def clear_features_cache
  @features_cache = nil
end

#clear_manufacturers_cacheObject


8
9
10
# File 'lib/prestashop/client/cache.rb', line 8

def clear_manufacturers_cache
  @manufacturers_cache = nil
end

#clear_option_values_cacheObject


48
49
50
# File 'lib/prestashop/client/cache.rb', line 48

def clear_option_values_cache
  @option_values_cache = nil
end

#clear_options_cacheObject


40
41
42
# File 'lib/prestashop/client/cache.rb', line 40

def clear_options_cache
  @options_cache = nil
end

#feature_values_cacheObject


28
29
30
# File 'lib/prestashop/client/cache.rb', line 28

def feature_values_cache
  @feature_values_cache ||= Mapper::ProductFeatureValue.cache
end

#features_cacheObject


20
21
22
# File 'lib/prestashop/client/cache.rb', line 20

def features_cache
  @features_cache ||= Mapper::ProductFeature.cache
end

#manufacturers_cacheObject


4
5
6
# File 'lib/prestashop/client/cache.rb', line 4

def manufacturers_cache
  @manufacturers_cache ||= Mapper::Manufacturer.cache
end

#option_values_cacheObject


44
45
46
# File 'lib/prestashop/client/cache.rb', line 44

def option_values_cache
  @option_values_cache ||= Mapper::ProductOptionValue.cache
end

#options_cacheObject


36
37
38
# File 'lib/prestashop/client/cache.rb', line 36

def options_cache
  @options_cache ||= Mapper::ProductOption.cache
end