Package cn.bran.play

Examples of cn.bran.play.CachedRenderResult


 
  public static void testCachedRenderResult() {
    CachedItemStatus cis = new CachedItemStatus(0);
    HashMap<String, String> headers = new HashMap<String, String>();
    RenderResult rr = new RenderResult(headers, new StringBuilder(), 123);
    CachedRenderResult crr = new CachedRenderResult(cis, rr);
    Cache.safeAdd("crr", crr, "10s");
    crr = (CachedRenderResult) Cache.get("crr");
    if(crr.isExpired())
      renderText("good to know..");
    else
      renderText("bad to know..");
  }
View Full Code Here


 
  public static void testCachedRenderResult() {
    CachedItemStatus cis = new CachedItemStatus(0);
    HashMap<String, String> headers = new HashMap<String, String>();
    RenderResult rr = new RenderResult(headers, new StringBuilder(), 123);
    CachedRenderResult crr = new CachedRenderResult(cis, rr);
    Cache.safeAdd("crr", crr, "10s");
    crr = (CachedRenderResult) Cache.get("crr");
    if(crr.isExpired())
      renderText("good to know..");
    else
      renderText("bad to know..");
  }
View Full Code Here

TOP

Related Classes of cn.bran.play.CachedRenderResult

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.