同步操作将从 红薯/J2Cache 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
j2cache-core 2.8.2 (2020-4-26)
j2cache-core 2.8.1 (2020-4-16)
J2Cache 2.4.1-release (2018-8-xx)
J2Cache 2.4.0-release (2018-8-4)
J2Cache 2.3.23-release (2018-7-30)
J2Cache 2.3.22-release (2018-7-3)
J2Cache 2.3.21-release (2018-5-23)
J2Cache 2.3.20-release (2018-5-23)
J2Cache 2.3.19-release (2018-5-22)
j2cache.default_cache_null_object
配置 J2Cache 是否默认启用 null 对象缓存J2Cache 2.3.18-release (2018-5-21)
J2Cache 2.3.17-release (2018-5-16)
J2Cache 2.3.16-release (2018-5-4)
J2Cache 2.3.15-release (2018-5-4)
J2Cache 2.3.14-release (2018-5-3)
J2Cache 2.3.13-release (2018-5-1)
j2cache.sync_ttl_to_redis
配置项来决定是否 Redis 缓存的数据也带 ttl 信息(相当于该配置如果设置为 false 时,redis 上的数据不会自动过期,该配置值默认为 true)J2Cache 2.3.12-release (2018-4-26)
该版本增加了 redis 只读的模式,可通过配置启用
j2cache.L2.provider_class = readonly-redis
j2cache.L2.config_section = redis
J2Cache 2.3.11-release (2018-4-xx)
redis
接口中关于同步块的代码逻辑错误 详情
Sonar
检测的代码问题进行修复J2Cache 2.3.10-release (2018-4-5)
J2Cache 2.3.9-release (2018-2-13)
J2Cache 2.3.8-release (2018-2-7)
J2Cache 2.3.7-release (2018-1-24)
J2Cache 2.3.6-release (2018-1-24)
J2CacheBuilder
类CacheChannel channel = J2Cache.getChannel();
RedisClient client = ((RedisCacheProvider)channel.getL2Provider()).getRedisClient();
try {
client.get().xxxxx(...);
} finally {
client.release();
}
J2Cache 2.3.5-release (2018-1-23)
generic
模式下如果没有对应的数据会导致 clear
方法执行失败的问题java.lang.ClassCastException: org.hibernate.cache.QueryKey cannot be cast to java.lang.String
J2Cache 2.3.4-release (2018-1-18)
DataLoader
接口,改用 Java 8 的 Function 接口替代(传递 key 参数)get(String region, Collection<String> keys, Function<String,Object> loader)
方法J2Cache 2.3.3-release (2018-1-17)
EhcacheProvider3
中代码和注释的拼写错误J2Cache 2.3.2-release (2018-1-17)
RedisPubSubClusterPolicy
和 RedisCacheProvider
独立两个连接池get(String region, String key, DataLoader loader)
方法用于从外部获取需要缓存的数据CacheChannel cache = J2Cache.getChannel();
CacheObject obj = cache.get("Users", "13", () -> "Hello J2Cache");
System.out.println(obj);
//[Users,13,L3]=>Hello J2Cache
J2Cache 2.3.1-release (2018-1-16)
RedisPubSubClusterPolicy
不再依赖 RedisCacheProvider
的 RedisClient
实例redis.channel.host
和 redis.channel.timeout
, redis 数据存储和订阅服务可以分开get(Collection<String> keys)
使用 Redis 的 MGET 操作符J2Cache 2.3.0-release (2018-1-15)
CacheObject
的 asXxx 方法来获取不同类型数据J2Cache 2.3.0-beta (2018-1-15)
commons-beanutils
的依赖,由于 beanutils 1.8 和 1.9 版本 api 变化大,此举可避免对宿主系统的影响J2Cache 2.2.4-release (2018-1-14)
J2Cache 2.2.3-release (2018-1-10)
J2Cache 2.2.2-release (2018-1-10)
redis
的订阅广播方式没有释放 redis
连接的问题(严重)sharded
模式下的 Redis
启用连接池redis.mode
的配置如果无效默认使用 single
模式,而不是抛出异常J2Cache 2.2.1-release (2018-1-10)
clear
和 keys
方法在 generic
存储方式下的非 cluster
模式下可用(性能可能会比较差,慎用)KEYS 的速度非常快,但在一个大的数据库中使用它仍然可能造成性能问题,如果你需要从一个数据集中查找特定的 key ,你最好还是用 Redis 的集合结构(set)来代替。
JLine
库)jgroups.configXml = /network.xml
)getObject
改名 get
,能自动识别缓存中的数据是字符串还是序列化对象J2Cache 2.2.0 beta (2018-1-6)
注意,该版本跟以往版本在 API 上不兼容!!!
新特性
redis.storage = generic|hash
)Bug修复
J2Cache 2.1 (2018-1-3)
J2Cache 2.0.1 (2017-12-26)
J2Cache 2.0-release (2017-12-24)
j2cache.L1.provider_class = ehcache3
J2Cache 2.0-beta (2017-12-22)
j2cache.L1.provider_class = ehcache3
)J2Cache 1.4.0 ()
J2Cache 1.3.0 (2015-11-5)
J2Cache 1.2.0 (2015-10-27)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。