Cache helper for
WebCmsUrl to path mappings. Note that only the unique
Long id of the
WebCmsUrl will be cached and an additional caching layer (eg. Hibernate 2nd level cache) is advised
for caching the actual entities.
This implementation serves as a read-through cache, which will fetch the actual
WebCmsUrl if not found.
The
WebCmsUrlCache always exists but might not use an actual backing
Cache
if no cache provider is present. Uses a
TransactionAwareCacheDecorator around the actual
Cache
ensuring that paths are only flushed after a transaction commits in case a running transaction is busy.