Instance Property インスタンスプロパティ

urlCache

The URL cache for providing cached responses to requests within the session. セッション内のリクエストそれらに対するキャッシュされた応答を提供するためのURLキャッシュ。

Declaration 宣言

var urlCache: URLCache? { get set }

Discussion 議論

This property determines the URL cache object used by tasks within sessions based on this configuration. このプロパティは、この構成設定に基づくセッション内のタスクによって使われるURLキャッシュオブジェクトを決定します。

To disable caching, set this property to nil. キャッシュを作動しないようにするには、このプロパティをnilに設定してください。

For default sessions, the default value is the shared URL cache object. 省略時のセッションに対して、省略時の値は共有URLキャッシュオブジェクトです。

For background sessions, the default value is nil. バックグラウンドセッションに対して、省略時の値はnilです。

For ephemeral sessions, the default value is a private cache object that stores data in memory only, and is destroyed when you invalidate the session. 短命セッションに対して、省略時の値はプライベートキャッシュオブジェクトです、それはデータをメモリ中にのみ格納します、そしてあなたがセッションを無効にする時に破壊されます。

See Also 参照

Setting Caching Policies キャッシュ方針を設定する