/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

  1. package com.gftech.util;
  2. import org.apache.jcs.JCS;
  3. import org.apache.jcs.access.exception.CacheException;
  4. public class GFUtil {
  5. public static boolean putIntoCache(JCS cache, Object name, Object obj) throws CacheException {
  6. if (cache != null && name != null && obj != null) {
  7. if ((name instanceof String) && ((String) name).endsWith(":"))
  8. return false;
  9. cache.put(name, obj);
  10. }
  11. return false;
  12. }
  13. }