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