method

escape_key

Importance_0
v3.0.9 - Show latest stable - 0 notes - Class: ActiveSupport::Cache::MemCacheStore
escape_key(key) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 160
        def escape_key(key)
          key = key.to_s.gsub(ESCAPE_KEY_CHARS){|match| "%#{match.getbyte(0).to_s(16).upcase}"}
          key = "#{key[0, 213]}:md5:#{Digest::MD5.hexdigest(key)}" if key.size > 250
          key
        end
Register or log in to add new notes.