Package io.bootique.mvc.renderer
Interface RenderableTemplateCache
-
public interface RenderableTemplateCacheA cache to store provider-specific templates.- Since:
- 3.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tget(Template template, Function<Template,T> renderedTemplateMaker)static RenderableTemplateCacheof(Duration ttl)Creates an unbounded cache with the specified entry TTL.static RenderableTemplateCacheofNoCache()Creates a dummy cache that does not store anything and reloads entries on every call.
-
-
-
Method Detail
-
ofNoCache
static RenderableTemplateCache ofNoCache()
Creates a dummy cache that does not store anything and reloads entries on every call.
-
of
static RenderableTemplateCache of(Duration ttl)
Creates an unbounded cache with the specified entry TTL.
-
-