Class
CacheTransform
public class CacheTransform: Transform
Takes the file or files that are passed into it and compresses them into a zip file.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
turnOff()
@discardableResult
func turnOff() -> Self
Adds the false
option.
Set cache to false to ensure that you always receive a newly converted file. This setting is only recommended for testing purposes because every time a URL using cache=false loads, it will count against your conversion quota.
expiry(_:)
@discardableResult
func expiry(_ value: Int) -> Self
Adds the expiry
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
Set the length in seconds to cache the file for. Valid range: 1...31536000 |
maxExpiry()
@discardableResult
func maxExpiry() -> Self
Adds the expiry
option.
Set the maximum length (1 year) to cache the file for.