Dil

HttpCacheType Enum

Definition

public enum HttpCacheType
type HttpCacheType = 
Inheritance
HttpCacheType

Fields

Name Value Description
Disabled 0

Setting to disable HTTP cache. Some data may still be temporarily stored in memory. Passed to setEnableHttpCache(int, long).

Android reference for android.net.http.HttpEngine.Builder.HTTP_CACHE_DISABLED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

InMemory 1

Setting to enable in-memory HTTP cache, including HTTP data. Passed to setEnableHttpCache(int, long).

Android reference for android.net.http.HttpEngine.Builder.HTTP_CACHE_IN_MEMORY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DiskNoHttp 2

Setting to enable on-disk cache, excluding HTTP data. setStoragePath(String) must be called prior to passing this constant to setEnableHttpCache(int, long).

Android reference for android.net.http.HttpEngine.Builder.HTTP_CACHE_DISK_NO_HTTP.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Disk 3

Setting to enable on-disk cache, including HTTP data. setStoragePath(String) must be called prior to passing this constant to setEnableHttpCache(int, long).

Android reference for android.net.http.HttpEngine.Builder.HTTP_CACHE_DISK.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to