Package com.skyline.energy.cache

Examples of com.skyline.energy.cache.CacheObject


    cacheResult.setKey(key);

    Cache cache = cacheManager.getCache(cacheDefinition.getPool());
    cacheResult.setCache(cache);

    CacheObject oldItem = (CacheObject) cache.get(key);
    LOGGER.debug("从" + key + "获取缓存对象:" + oldItem);
    if (oldItem != null) {
      return compareVersionKey(cacheDefinition, cacheResult, oldItem, args);
    }
View Full Code Here


    long expire = cacheDefinition.getExpire();

    long currentVersion = cacheResult.getCurrentVersion();

    CacheObject newItem = new CacheObject((Serializable) exeResult, currentVersion);
    cache.add(key, newItem, expire);
    LOGGER.debug("缓存对象到:" + key + ",缓存时间:" + expire + "毫秒");

    if (cacheDefinition.isReturnCollection()) {
      int pageIndex = cacheDefinition.getPageIndex();
View Full Code Here

TOP

Related Classes of com.skyline.energy.cache.CacheObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.