method

validate_options

validate_options(options)
private

No documentation available.

# File activesupport/lib/active_support/cache.rb, line 911
        def validate_options(options)
          if options.key?(:coder) && options[:serializer]
            raise ArgumentError, "Cannot specify :serializer and :coder options together"
          end

          if options.key?(:coder) && options[:compressor]
            raise ArgumentError, "Cannot specify :compressor and :coder options together"
          end

          if Cache.format_version < 7.1 && !options[:serializer] && options[:compressor]
            raise ArgumentError, "Cannot specify :compressor option when using"                " default serializer and cache format version is < 7.1"
          end

          options
        end