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 default
PolicyCachingConfig.The policy cache will have a maximum of 128 entries.
Declaration
Swift
public convenience init() -
Constructs a
PolicyCachingConfigwith the provided maximum policy cache size.Declaration
Swift
public convenience init(maxEntries: UInt)Parameters
maxEntriesmaximum 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 }
View on GitHub
PolicyCachingConfig Class Reference