Sha256: 938eb659b36f043a612b57d87a108ddf17ca8c815a85d40a81890d1ed995fdfd

Contents?: true

Size: 921 Bytes

Versions: 37

Compression:

Stored size: 921 Bytes

Contents

class Fastly
  # customize cache handling. Best used with conditions.
  class CacheSetting < BelongsToServiceAndVersion
    attr_accessor :service_id, :name, :action, :cache_condition, :ttl, :stale_ttl
    ##
    # :attr: service_id
    #
    # The id of the service this belongs to.

    ##
    # :attr: version
    #
    # The number of the version this belongs to.

    ##
    # :attr: name
    #
    # The name of the gzip setting

    ##
    # :attr: action
    #
    # Allows for termination of execution and either cache, pass, or restart

    ##
    # :attr: ttl
    #
    # Sets the time to live

    ##
    # :attr: stale_ttl
    #
    # Sets the max time to live for stale (unreachable) objects

    ##
    # :attr: cache_condition
    #
    # Name of the cache condition used to test whether this settings object
    # should be used.

    def self.path
      Util.class_to_path(self, true)
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fastly-3.0.2 lib/fastly/cache_setting.rb
fastly-3.0.1 lib/fastly/cache_setting.rb
fastly-3.0.0 lib/fastly/cache_setting.rb
fastly-2.5.3 lib/fastly/cache_setting.rb
fastly-2.5.2 lib/fastly/cache_setting.rb
fastly-2.5.1 lib/fastly/cache_setting.rb
fastly-2.5.0 lib/fastly/cache_setting.rb
fastly-2.4.0 lib/fastly/cache_setting.rb
fastly-2.3.1 lib/fastly/cache_setting.rb
fastly-2.3.0 lib/fastly/cache_setting.rb
fastly-2.2.0 lib/fastly/cache_setting.rb
fastly-2.1.0 lib/fastly/cache_setting.rb
fastly-2.0.0 lib/fastly/cache_setting.rb
fastly-1.15.0 lib/fastly/cache_setting.rb
fastly-1.14.0 lib/fastly/cache_setting.rb
fastly-1.13.2 lib/fastly/cache_setting.rb
fastly-1.13.1 lib/fastly/cache_setting.rb
fastly-1.13.0 lib/fastly/cache_setting.rb
fastly-1.12.0 lib/fastly/cache_setting.rb
fastly-1.11.0 lib/fastly/cache_setting.rb