0
阿帕奇的Geode缓存溢出的配置我都可以这样来配置持久性高速缓存: -持久性数据
<region name="stock-hist" refid="PARTITION_PERSISTENT" >
<region-attributes disk-store-name="myOverflowStore" disk- synchronous="false">
<partition-attributes local-max-memory="1024" />
<eviction-attributes>
<!-- Overflow to disk when 100 megabytes of data reside in the
region -->
<lru-memory-size maximum="100" action="overflow-to-disk"/>
</eviction-attributes>
</region-attributes>
的问题是,我存放时说,8 GB的数据高速缓存崩溃是由于过多的内存。我不希望这种情况发生。就像我需要数据在超过100MB时溢出到磁盘一样,但如果我尝试访问它,请将其重新缓存到磁盘。我也想持久缓存。
此外,如果我写入数据库后,我怎么能在某个时间后驱逐数据。
这是如何工作的?
我想的Geode允许将数据持久化。所以我试图使用它,我想要的是让数据在使用1GB内存后保存到磁盘。这对于数据库来说是不可能的。我不确定你是否理解我的问题,但是使用partition_persistent_overflow来获取该功能。我得到了它的工作 –