Module: CacheRocket::Key

Included in:
CacheRocket, Fragment
Defined in:
lib/cache_rocket/key.rb

Constant Summary collapse

CACHE_REPLACE_KEY_OPEN =
'<cr '

Instance Method Summary collapse

Instance Method Details

#cache_replace_key(key) ⇒ Object

string key containing the partial file name or placeholder key. It is a tag that should never be returned to be rendered by the client, but if so, it will be hidden since CR is not a valid html tag.



8
9
10
# File 'lib/cache_rocket/key.rb', line 8

def cache_replace_key(key)
  "#{CACHE_REPLACE_KEY_OPEN}#{key.to_s}>".html_safe
end