/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
- package com.gftech.util;
-
- import org.apache.jcs.JCS;
- import org.apache.jcs.access.exception.CacheException;
-
- public class GFUtil {
-
- public static boolean putIntoCache(JCS cache, Object name, Object obj) throws CacheException {
- if (cache != null && name != null && obj != null) {
- if ((name instanceof String) && ((String) name).endsWith(":"))
- return false;
-
- cache.put(name, obj);
- }
-
- return false;
- }
-
- }