Apache Geode 区域与缓存

Apache Geode region vs cache

当在 EhCache 中定义缓存时,我们定义多个缓存,如员工、部门等。以类似的方式,我们是否在 Apache Geode 中定义单独的区域?

来自About Apache Geode

Caches are an abstraction that describe a node in a Geode cluster.

Within each cache, you define data regions. Data regions are analogous to tables in a relational database and manage data in a distributed fashion as name/value pairs.

所以是的,作为类比,您可以将 Apache Geode Cache 视为 EhCache CacheManager, Apache Geode Region 作为 EhCache Cache.

希望这对您有所帮助。干杯。