簡體   English   中英

Gemfire中的多個緩存創建

[英]Multiple cache creations in Gemfire

我正在嘗試在一個JVM中創建一個本地緩存和一個客戶端緩存,但是我得到下面所述的錯誤,我認為由於緩存是單例而發生的,你只能為每個JVM創建一個。

有人知道一個好的工作嗎?

錯誤:

Error creating bean with name 'ccf': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: The singleton cache was created by CacheFactory not ClientCacheFactory.

Cache.xml:

<gfe:cache id="localCache"/> 

<gfe:client-cache id="ccf" pool-name="gfPool" properties-ref="clientCacheProperties" />

<gfe:pool id="gfPool" subscription-enabled="true" load-conditioning-interval="6000" socket-buffer-size="65535" thread-local-connections="true" read-timeout="6000"
    idle-timeout="6000" retry-attempts="-1" ping-interval="5000" max-connections="-1">
    <gfe:locator host="127.0.0.1" port="10083" />
</gfe:pool>

<gfe:local-region id="localRegion"  cache-ref="localCache"/> 

<gfe:client-region id="region" cache-ref="ccf" pool-name="gfPool" name="regionName" shortcut="CACHING_PROXY"/>

您無法在同一JVM中定義多個緩存。 緩存是單身人士。 請參閱API文檔

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM