key_for (Merb::Cache)

    # File lib/merb-cache/merb-cache.rb, line 123
      def key_for(options, controller, controller_based = false)
        key = ""
        if options.is_a? Hash
          case
          when key = options[:key]
          when action = options[:action]
            controller = options[:controller] || controller
            key = "/#{controller}/#{action}"
          end
          if _params = options[:params]
            key += "/" + _params.join("/")
          end
        else
          key = controller_based ? "/#{controller}/#{options}" : options
        end
        key
      end