Filestack Documentation

Class Cache​Transform

public class CacheTransform: Transform  

Takes the file or files that are passed into it and compresses them into a zip file.

CacheTransform CacheTransform Transform Transform CacheTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a CacheTransform object.

Methods

turn​Off()

@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

value Int

Set the length in seconds to cache the file for. Valid range: 1...31536000

max​Expiry()

@discardableResult
    func maxExpiry() -> Self  

Adds the expiry option.

Set the maximum length (1 year) to cache the file for.