PageRenderTime 33ms CodeModel.GetById 30ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/ictclas4j/src/com/gftech/util/GFUtil.java

http://ictclas4j.googlecode.com/
Java | 19 lines | 13 code | 6 blank | 0 comment | 8 complexity | c8e6e76e0df81f4edcb0b6002330999f MD5 | raw file
 1package com.gftech.util;
 2
 3import org.apache.jcs.JCS;
 4import org.apache.jcs.access.exception.CacheException;
 5
 6public class GFUtil {
 7
 8	public static boolean putIntoCache(JCS cache, Object name, Object obj) throws CacheException {
 9		if (cache != null && name != null && obj != null) {
10			if ((name instanceof String) && ((String) name).endsWith(":"))
11				return false;
12
13			cache.put(name, obj);
14		}
15
16		return false;
17	}
18
19}