Package railo.commons.io.cache

Examples of railo.commons.io.cache.CacheEntry


    return true;
  }
 
  @Override
  public CacheEntry getCacheEntry(String key) throws IOException {
    CacheEntry entry = getCacheEntry(key, null);
    if(entry==null) throw new CacheException("there is no valid cache entry with key ["+key+"]");
    return entry;
  }
View Full Code Here


    if(entry==null) throw new CacheException("there is no valid cache entry with key ["+key+"]");
    return entry;
  }
 
  public CacheEntry getQuiet(String key) throws IOException {
    CacheEntry entry = getQuiet(key, null);
    if(entry==null) throw new CacheException("there is no valid cache entry with key ["+key+"]");
    return entry;
  }
View Full Code Here

      List entries;
      if(Util.isEmpty(filter)) entries=cache.entries();
      else entries=cache.entries(new WildCardFilter(filter,false));
     
      Iterator it = entries.iterator();
      CacheEntry entry;
      while(it.hasNext()){
        entry=(CacheEntry) it.next();
        sct.setEL(entry.getKey(), entry.getValue());
      }
    }
    catch (Exception e) {e.printStackTrace();}
    return sct;
  }
View Full Code Here

    return cache.getCustomInfo();
  }
 
  public Struct info(String key) throws IOException {
    if(key==null) return info();
    CacheEntry entry = cache.getCacheEntry(key);
    return entry.getCustomInfo();
  }
View Full Code Here

    return null;
  }

  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());
    }
  }
View Full Code Here

    }
  }
 

  Struct getMeta(String path,String name) {
    CacheEntry ce = getCache().getCacheEntry(toKey(path,name),null);
    if(ce!=null) return ce.getCustomInfo();
    return null;
  }
View Full Code Here

TOP

Related Classes of railo.commons.io.cache.CacheEntry

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.