Module: RenuoCmsRails::Cache

Defined in:
lib/renuo_cms_rails/cache.rb,
lib/renuo_cms_rails/cache/cacher.rb

Defined Under Namespace

Classes: Cacher

Class Method Summary collapse

Class Method Details

.cacheObject

Returns the value of attribute cache.



7
8
9
# File 'lib/renuo_cms_rails/cache.rb', line 7

def cache
  @cache
end

.getString

Gets the content if the content with the content_path is in the cache, nil otherwise.

Parameters:

  • content_path (String)

Returns:

  • (String)


16
# File 'lib/renuo_cms_rails/cache.rb', line 16

delegate :get, to: :cache

.initialize_cacheObject