PolicyCachingConfig

public class PolicyCachingConfig : SdkObject

Policy evaluation caching config

Since policies are evaluated by the webservice, caching the result can greatly speed up encrypting a document with a PolicyGrant.

  • Constructs a defaultPolicyCachingConfig.

    The policy cache will have a maximum of 128 entries.

    Declaration

    Swift

    public convenience init()
  • Constructs a PolicyCachingConfig with the provided maximum policy cache size.

    Declaration

    Swift

    public convenience init(maxEntries: UInt)

    Parameters

    maxEntries

    maximum number of policy evaluations that will be cached by the SDK. If the maximum number is exceeded, the cache will be cleared prior to storing the next entry.

  • Maximum entries in the policy cache

    Declaration

    Swift

    public lazy var maxEntries: UInt { get set }