Examples of RatpackTemplateCache


Examples of ratpack.handlebars.internal.RatpackTemplateCache

  @SuppressWarnings("UnusedDeclaration")
  @Provides
  TemplateCache provideTemplateCache(LaunchConfig launchConfig) {
    boolean reloadable = this.reloadable == null ? launchConfig.isDevelopment() : this.reloadable;
    int cacheSize = this.cacheSize == null ? Integer.parseInt(launchConfig.getOther("handlebars.cacheSize", "100")) : this.cacheSize;
    return new RatpackTemplateCache(reloadable, CacheBuilder.newBuilder().maximumSize(cacheSize).<TemplateKey, com.github.jknack.handlebars.Template>build());
  }
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.