package com.walker.cache;
|
|
|
/**
|
* 缓存管理配置类,新版本中可能会被废弃
|
* @author MikeShi
|
*
|
*/
|
public class CacheConfig
|
// implements ApplicationBeanInitialized, ApplicationBeanDestroied
|
{
|
|
public static int INIT_CACHEMAP_SIZE = 512;
|
// public static final int REDIS_MAX_SIZE_DEL = 5120 * 10;
|
|
public static final void setInitCachemapSize(int size){
|
if(size > 0 && size < Integer.MAX_VALUE){
|
INIT_CACHEMAP_SIZE = size;
|
}
|
}
|
|
/**
|
* 缓存文件临时保存到磁盘的路径
|
*/
|
public static final String WRITE_TEMP_CACHEFILE = System.getProperty("java.io.tmpdir");
|
|
}
|