shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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");
    
}