Package railo.commons.io.cache

Examples of railo.commons.io.cache.CacheEntry.lastModified()


    String key,appname,cfid;
    if(entries.size()>0){
      Iterator<CacheEntry> it = entries.iterator();
      while(it.hasNext()){
        ce=it.next();
        expires=ce.lastModified().getTime()+ce.idleTimeSpan()-StorageScopeCache.SAVE_EXPIRES_OFFSET;
        if(expires<=System.currentTimeMillis()) {
          key=ce.getKey().substring(len);
          index=key.indexOf(':');
          cfid=key.substring(0,index);
          appname=key.substring(index+1);
View Full Code Here


     
      info.set(CREATED_TIME, entry.created());
      info.set(KeyConstants._hitcount, new Double(entry.hitCount()));
      info.set(IDLE_TIME, new Double(entry.idleTimeSpan()));
      info.set(LAST_HIT, entry.lastHit());
      info.set(LAST_UPDATED, entry.lastModified());
      info.set(KeyConstants._size, new Double(entry.size()));
      info.set(KeyConstants._timespan, new Double(entry.liveTimeSpan()));
      return info;
    } catch (IOException e) {
      throw Caster.toPageException(e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.