CacheTransform
public class CacheTransform : Transform
Takes the file or files that are passed into it and compresses them into a zip file.
-
Initializes a
CacheTransform
object.Declaration
Swift
public init()
-
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.
Declaration
Swift
@discardableResult func turnOff() -> Self
-
Adds the
expiry
option.Declaration
Swift
@discardableResult func expiry(_ value: Int) -> Self
Parameters
value
Set the length in seconds to cache the file for. Valid range: 1…31536000
-
Adds the
expiry
option.Set the maximum length (1 year) to cache the file for.
Declaration
Swift
@discardableResult func maxExpiry() -> Self