teeparham/cache_replace

View on GitHub
lib/cache_rocket/key.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module CacheRocket
  module Key
    # 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 CRK is not a valid html tag.
    def cache_replace_key(key)
      "<crk #{key}>".html_safe
    end
  end
end