Uses of Interface
freemarker.cache.CacheStorage
Packages that use CacheStorage
Package
Description
Template loading and caching.
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration
(see also the
Getting Started in the Manual.)-
Uses of CacheStorage in freemarker.cache
Subinterfaces of CacheStorage in freemarker.cacheModifier and TypeInterfaceDescriptioninterface
A cache storage that has agetSize()
method for returning the current number of cache entries.interface
An optional interface for cache storage that knows whether it can be concurrently accessible without synchronization.Classes in freemarker.cache that implement CacheStorageModifier and TypeClassDescriptionclass
A cache storage that implements a two-level Most Recently Used cache.class
A cache storage that doesn't store anything.class
Soft cache storage is a cache storage that usesSoftReference
objects to hold the objects it was passed, therefore allows the garbage collector to purge the cache when it determines that it wants to free up memory.class
Strong cache storage is a cache storage that simply wraps aMap
.Methods in freemarker.cache that return CacheStorageConstructors in freemarker.cache with parameters of type CacheStorageModifierConstructorDescriptionTemplateCache
(TemplateLoader templateLoader, CacheStorage cacheStorage) Deprecated.TemplateCache
(TemplateLoader templateLoader, CacheStorage cacheStorage, TemplateLookupStrategy templateLookupStrategy, TemplateNameFormat templateNameFormat, TemplateConfigurationFactory templateConfigurations, Configuration config) TemplateCache
(TemplateLoader templateLoader, CacheStorage cacheStorage, TemplateLookupStrategy templateLookupStrategy, TemplateNameFormat templateNameFormat, Configuration config) Same asTemplateCache(TemplateLoader, CacheStorage, TemplateLookupStrategy, TemplateNameFormat, TemplateConfigurationFactory, Configuration)
withnull
fortemplateConfigurations
-s.TemplateCache
(TemplateLoader templateLoader, CacheStorage cacheStorage, Configuration config) -
Uses of CacheStorage in freemarker.template
Methods in freemarker.template that return CacheStorageModifier and TypeMethodDescriptionConfiguration.getCacheStorage()
The getter pair ofConfiguration.setCacheStorage(CacheStorage)
.Methods in freemarker.template with parameters of type CacheStorageModifier and TypeMethodDescriptionvoid
Configuration.setCacheStorage
(CacheStorage cacheStorage) Sets theCacheStorage
used for cachingTemplate
-s; the earlier content of the template cache will be dropt.
TemplateCache(TemplateLoader, CacheStorage, Configuration)
instead.