Example Scenario
The SAP Commerce Region Cache is already preconfigured, but may be easily customized. This section presents default cache region settings and an example scenario of modifying those settings.
Standard Configuration
The default setup of the SAP Commerce Region Cache contains the following regions:
-
Type system region: For storing entities of type system items
-
Entity region: For storing entities of all types except type system ones
-
Query results region: For storing all query results
-
Media items region: For storing all media items
-
Session region: For storing HTTP sessions
Extended Configuration
It's possible to easily extend the default configuration of cache regions. In this example, the standard configuration is modified in the following way:
-
A cache region is added for storing product entities.
-
A manual cache region is added.
-
The size of the cache region for all entities is decreased to 50000.
Manual cache regions aren't controlled by the cache framework, but by user custom logic. You can decide when and what has to be stored in it. Additionally, you can control when manual region entities are invalidated.