1. 基本配置
jcs.default=DC
jcs.default.cacheattributes=org.apache.commons.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=1000 (The maximum number of items allowed in memory)
jcs.default.cacheattributes.MemoryCacheName=org.apache.commons.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=true (内存清理,设为true时会扫描内存,删除过期的和空闲时间超期的item)
jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600 (specifies how long an object can be in memory before it is subjected to removal or being spooled to a disk cache if it is available,指定了在内存中的存活时间,超时的如果还available会被写入磁盘,只在设置了memory shrinker后有效)
jcs.default.cacheattributes.ShrinkerIntervalSeconds=60 (how often the shrinker should run,只在设置了memory shrinker后有效)
jcs.default.cacheattributes.DiskUsagePatternName=SWAP (SWAP, UPDATE, JDBC)
jcs.default.elementattributes=org.apache.commons.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false (是否永久有效)
jcs.default.elementattributes.MaxLifeSeconds=700 (the maximum life of an item,指定了生命周期,超时的item不能被get到,如果设置了MemoryShinker,则会被清理)
jcs.default.elementattributes.IdleTime=1800 (the maximum time an item can live without being accessed,指定了item的最长空闲时间)
jcs.default.elementattributes.IsSpool=true (是否写入磁盘)
jcs.default.elementattributes.IsRemote=true (是否发送给远程服务器)
jcs.default.elementattributes.IsLateral=true (是否并行分布)
2. LTCP
jcs.auxiliary.LTCP=org.apache.commons.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.commons.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
#jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111,localhost:1112 (This is the list of servers this cache should try to connect to. With UDP discovery this is not necessary)
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1118 (本地cache监听的端口)
jcs.auxiliary.LTCP.attributes.UdpDiscoveryAddr=228.5.6.8 (并行cache的ip)
jcs.auxiliary.LTCP.attributes.UdpDiscoveryPort=6780 (并行cache的udp端口)
jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=true (UDP discovery是否开启)
jcs.auxiliary.LTCP.attributes.Receive=true (false时只发送数据,true时接收并行cache发送的数据)
jcs.auxiliary.LTCP.attributes.AllowGet=false (是否允许本地cache从并行cache那里get,被PutOnlyMode属性控制)
jcs.auxiliary.LTCP.attributes.IssueRemoveOnPut=false (ture时,用remove代替put,数据一致性更强些)
jcs.auxiliary.LTCP.attributes.FilterRemoveByHashCode=false (If this is true, and IssueRemoveOnPut is true, the client will include the hashCode of the element to remove. If it is also true on the receiving end, the receiver will check to see if the element exists. If the element exists, and the hashCodes are the same, the item will not be removed)
jcs.auxiliary.LTCP.attributes.SocketTimeoOt=1001 (socket (read) timeout)
jcs.auxiliary.LTCP.attributes.OpenTimeOut=2002 (socket open timeout)
jcs.auxiliary.LTCP.attributes.ZombieQueueMaxSize=2000 (与并行cache连接异常时,未同步事件的列表长度)
相关推荐
JCS缓存入门及简介
JCS缓存所需jar
JCS超越了简单地在内存中缓存对象的功能。它提供了许多附加的功能: ● 内存管理 ● 磁盘溢位(和碎片整理) ● 线程池控制 ● 元素分组 ● 最少的依赖 ● 快速嵌套的直接了当的删除 ...
简单的jcs实例,需要一些jar包,对于占用大量内存的代码可以考虑用jcs.
JCS超越了简单地在内存中缓存对象的功能。它提供了许多附加的功能: ● 内存管理 ● 磁盘溢位(和碎片整理) ● 线程池控制 ● 元素分组 ● 最少的依赖 ● 快速嵌套的直接了当的删除 ...
jcs-1.3资源包下载,没什么可描述的, 自己下载看吧
jcs缓存所需要的包。导入这两个包即可使用jcs缓存策略
jcs 所需的三个jar包 还没来得及测试
JCS在一般用在,查询数据库比较频繁,每次查询的结果都差不多,这样讲数据进行缓冲,可以 减轻数据库负担: 下面举个例子: 在一个点击量比较频繁的页面,调用一个数据列表,每个用户进去在某一时间段数据都一样,...
commons-jcs针对web开发缓存处理
佳灵JCS高压变频器彩色样本PDF版pdf,佳灵JCS高压变频器彩色样本PDF版
资源分类:Python库 所属语言:Python 资源全名:jcson-0.1.1-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
昆仑海岸 JCS大量程系列超声波物位变送器使用说明书PDF,昆仑海岸 JCS大量程系列超声波物位变送器使用说明书
今天看到csdn 上的一个哥们,将这个资源的资源分设为10,从另外的地方找了一份,特上传与大家分享。
JCS-018立时加工中心主轴箱及(sw+说明书+cad).rar
What jars are required by JCS? As of verison 1.2.7.0, the core of JCS (the LRU memory cache, the indexed disk cache, the TCP lateral, and the RMI remote server) requires only two other jars. ...
(Java Caching System)基于数据库的WEB应用程序加上缓存,以提高性能
JCS-018立时加工中心主轴箱及(sw+说明书+cad)cad图纸毕业生设计书.zip
NULL 博文链接:https://phl.iteye.com/blog/2240901
昆仑海岸 JCS-10系列超声波物位变送器使用说明书PDF,昆仑海岸 JCS-10系列超声波物位变送器使用说明书