com.aliyun.player.nativeclass

## Class CacheConfig

- java.lang.Object
- - com.aliyun.player.nativeclass.CacheConfig

-     public class CacheConfig
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `java.lang.String` | `mDir` The directory of the cache.
    `boolean` | `mEnable` Indicate whether content caching is enabled.
    `long` | `mMaxDurationS` The maximum size of a single file that can be cached.
    `int` | `mMaxSizeMB` The maximum cache size.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CacheConfig()`

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### mEnable

          public boolean mEnable

      Indicate whether content caching is enabled. Value true indicates that content caching is enabled. The default is disabled.

    - #### mDir

          public java.lang.String mDir

      The directory of the cache.

    - #### mMaxSizeMB

          public int mMaxSizeMB

      The maximum cache size. If the size of the files need to be cached exceeds the maximum cache size, the earliest files are deleted. Unit: MB.

    - #### mMaxDurationS

          public long mMaxDurationS

      The maximum size of a single file that can be cached. Files that fail to match this limit are not cached. Unit: seconds.

  - ### Constructor Detail

    - #### CacheConfig

          public CacheConfig()