Method: Platform::Cache.cache

Defined in:
lib/platform/cache.rb

.cacheObject



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/platform/cache.rb', line 26

def self.cache
  @cache ||= begin
    if Platform::Config.cache_adapter == 'ActiveSupport::Cache'
      store_params = [Platform::Config.cache_store].flatten
      store_params[0] = store_params[0].to_sym
      ActiveSupport::Cache.lookup_store(*store_params)
    else
      eval(Platform::Config.cache_adapter)  
    end
  end
end