Examples of idleTimeSpan()


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

    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

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

      info.set(CACHE_CUSTOM, cache.getCustomInfo());
      info.set(KeyConstants._custom, entry.getCustomInfo());
     
      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;
View Full Code Here

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

  void touch(String path,String name) {
    Cache cache = getCache();
    CacheEntry ce = cache.getCacheEntry(toKey(path,name),null);
    if(ce!=null){
      cache.put(ce.getKey(), ce.getValue(), ce.idleTimeSpan(), ce.liveTimeSpan());
    }
  }
 

  Struct getMeta(String path,String name) {
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.