Package | Description |
---|---|
freemarker.cache |
Contains classes and interfaces that deal with template loading and caching.
|
freemarker.template |
This package contains the core API's that most users will use.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConcurrentCacheStorage
An optional interface for cache storage that knows whether it can be
concurrently accessible without synchronization.
|
Modifier and Type | Class and Description |
---|---|
class |
MruCacheStorage
A cache storage that implements a two-level Most Recently Used cache.
|
class |
NullCacheStorage
A cache storage that doesn't store anything.
|
class |
SoftCacheStorage
Soft cache storage is a cache storage that uses
SoftReference
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 |
StrongCacheStorage
Strong cache storage is a cache storage that simply wraps a
Map . |
Modifier and Type | Method and Description |
---|---|
CacheStorage |
TemplateCache.getCacheStorage() |
Constructor and Description |
---|
TemplateCache(TemplateLoader loader,
CacheStorage storage)
Creates a new template cache with a custom template loader that is used
to load the templates.
|
Modifier and Type | Method and Description |
---|---|
void |
Configuration.setCacheStorage(CacheStorage storage)
Sets the
CacheStorage used for caching Template -s. |