These constants specify the caching strategy used by an Cached
object.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
enum StoragePolicy : UInt
These constants specify the caching strategy used by an Cached
object.
SDKs
Framework
enum StoragePolicy : UInt
case allowed
Storage in URLCache
is allowed without restriction.
case allowed In Memory Only
Storage in URLCache
is allowed; however storage should be restricted to memory only.
case not Allowed
Storage in URLCache
is not allowed in any fashion, either in memory or on disk.