O'Reilly logo

Liferay Portal Systems Development by Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cache clustering

The portal can be deployed in clusters of multiple instances for availability and scalability. It leverages Ehcache-distributed or replicated cache. Without a distributed or replicated cache, the application clusters exhibit a number of undesirable behaviors.

Portal cache interfaces

The portal has defined a set of cache interfaces, such as portal cache, single VM pool, multi-VM pool, thread local cache, and so on. The following table shows an overview of these cache interfaces:

Interface

Utility/Implementation

Main functions/Related models

Description

PortalCache

BasePortalCache, BlockingPortalCache

Destroy, get, put, registerCacheListener, remove, unregisterCacheListener

Portal cache

PortalCacheManager

none

clearAll

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required