jetcache icon indicating copy to clipboard operation
jetcache copied to clipboard

JetCache is a Java cache framework.

Results 222 jetcache issues
Sort by recently updated
recently updated
newest added

请问现在Jedis版本是否已经支持Redis集群模式及支持集群配置? 如果已经支持的话 是哪个版本支持了?

key = "#param1 + '_' + #param2 + '_' + #param3 + '_' + #param4" 如上所示, 如果上面某一个param为null, 那会缓存这个key吗? 求知道的大神指点

Caused by: java.lang.NullPointerException: Cannot invoke "com.alicp.jetcache.anno.support.CacheContext.createCacheInvokeContext(com.alicp.jetcache.anno.support.ConfigMap)" because the return value of "com.alicp.jetcache.anno.support.GlobalCacheConfig.getCacheContext()" is null

碰到一个场景:要求不同的业务线缓存数据的过期时间不一样,并且可随时调整某个业务线的缓存过期时间。 现在的方案是想:在不做硬编码的情况下,能否通过请求参数来调整指定Key缓存的过期时间

您好,我们有个2G的业务场景是,当现场部署了redis的话,可以采用`both` cache.如果没有部署redis的话,自动降级为`local` cache。 目前cacheType只支持local,remote,both 可行的解决方案: 1. 加一种cacheType,叫bothIfRemoteEnabled, 2. 就用`both` cacheType,在配置文件中可以显式增加配置为 ``` jetcache: remote: enabled: false(默认为true) ``` 我建议第二种方案,这样用到二级缓存的情况下,代码中就写`both`,如果某地上线只需要单节点,不需要redis的话,可以直接通过配置文件把`remote`置为disabled。 如果您认可此特性的话,我可以修改后提交pr

请问lettuce怎么打开ssl

操作:将jetcache版本从2.5.12以下版本升级到2.5.12以上版本,当Application启动类上不加@EnableCreateCacheAnnotation和@EnableMethodCache启动失败,报Consider defining a bean of type 'com.alicp.jetcache.anno.support.ConfigMap' in your configuration. 原因:项目中引用jatcache包但是并没有使用jetcache的相关功能。 期望:当Application启动类上不加@EnableCreateCacheAnnotation和@EnableMethodCache能启动成功

你好最近项目中准备应道com.alicp.jetcache.Cache#tryLock的锁,场景主要是进程级别的请求去重。 场景是当前进程多个请求并发请求某个key,发现这个key过期了,此时只需一个线程去刷新缓存即可 但是使用发现并发比较高时,还是有多个线程能够同时占用锁,以下是我的代码:求指教~ private static final Cache cache = CaffeineCacheBuilder.createCaffeineCacheBuilder() .limit(1000) .expireAfterWrite(120, SECONDS) .buildCache(); @Test public void testLock1() { for (int i=1; i { try(AutoReleaseLock lock = cache.tryLock(key,1, TimeUnit.SECONDS)){ if(lock...

## 版本: 2.5.14 ## 问题: [actuator caches endpoint](https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints.enabling) 无法查看 cache 的状态,希望能够与Spring Cache 兼容,expose cache status/statistics 数据。 谢谢!