源代码备份
This commit is contained in:
37
AppFrame/src/main/java/com/arialyy/frame/cache/CacheParam.java
vendored
Normal file
37
AppFrame/src/main/java/com/arialyy/frame/cache/CacheParam.java
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
package com.arialyy.frame.cache;
|
||||
|
||||
/**
|
||||
* Created by Lyy on 2015/4/9.
|
||||
* 缓存参数
|
||||
*/
|
||||
public interface CacheParam {
|
||||
|
||||
/**
|
||||
* 磁盘缓存
|
||||
*/
|
||||
public static final int DISK_CACHE = 0;
|
||||
/**
|
||||
* 默认缓存目录文件夹名
|
||||
*/
|
||||
public static final String DEFAULT_DIR = "defaultDir";
|
||||
/**
|
||||
* 内存缓存
|
||||
*/
|
||||
public static final int MEMORY_CACHE_SIZE = 1;
|
||||
/**
|
||||
* 小容量磁盘缓存
|
||||
*/
|
||||
public static final long SMALL_DISK_CACHE_CAPACITY = 4 * 1024 * 1024;
|
||||
/**
|
||||
* 中型容量磁盘缓存
|
||||
*/
|
||||
public static final long NORMAL_DISK_CACHE_CAPACITY = 10 * 1024 * 1024;
|
||||
/**
|
||||
* 大容量磁盘缓存
|
||||
*/
|
||||
public static final long LARGER_DISKCACHE_CAPACITY = 20 * 1024 * 1024;
|
||||
/**
|
||||
* 缓存index
|
||||
*/
|
||||
public static final int DISK_CACHE_INDEX = 0;
|
||||
}
|
Reference in New Issue
Block a user