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

请问我在使用 jetcache结合远程redis的时候有没有方法可以实现模糊查询或者查询全部

如果使用@Cached方法缓存了数据库的一张表为list, 那么我怎样在修改某行数据时,更新我缓存中的list呢?只能定时@CacheRefresh ?

请问一下,redis的连接密码在application.yaml文件中支持密文配置吗?因为业务上公司有规定,不能在配置文件中直接配置明文密码

在使用jetcache-redis-lettuce时,当设置 expireAfterAccess 参数后,会报异常: ` Caused by: com.alicp.jetcache.CacheConfigException: expireAfterAccess is not supported at com.alicp.jetcache.redis.lettuce.RedisLettuceCache.(RedisLettuceCache.java:51) at com.alicp.jetcache.redis.lettuce.RedisLettuceCacheBuilder.lambda$new$0(RedisLettuceCacheBuilder.java:21) at com.alicp.jetcache.AbstractCacheBuilder.buildCache(AbstractCacheBuilder.java:43) at cn.trustway.nix.boot.cache.configuration.NixCacheAutoConfiguration.globalRemoteCache(NixCacheAutoConfiguration.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)...

2022-04-27 09:09:23.139 ERROR 1620 --- [DefaultExecutor] com.alicp.jetcache.AbstractCache : jetcache(RedisLettuceCache) GET error. key=[1507632057967497216] java.io.IOException: 远程主机强迫关闭了一个现有的连接。 at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:192) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:378) at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:253) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1134) at...

在项目中使用注解调用抛出异常,项目启动的时候能够正常获取到nacos中的配置信息,就是使用注解调用的时候抛了异常 ```java /** 缓存 **/ @CreateCache(name = "app::shiro-user", expire = 30, timeUnit = TimeUnit.MINUTES, cacheType = CacheType.BOTH) @CacheRefresh(refresh = 5, stopRefreshAfterLastAccess = 30, timeUnit = TimeUnit.MINUTES) private Cache activeUserCache; ```...

主从哨兵模式,配置readFromSlave:true,需要配置slaves,这块配置找了下文档都没提及,看源码似乎是在slaves下配置,试着配了一下加载配置有错误,配置内容: 部署配置环境master在192.168.1.106 6379,slave在192.168.1.106:6380, sentinel在192.168.1.106:26379 ``` jetcache: remote: default: host: 192.168.1.106 port: 6379 password: 123 timeout: 3000 masterName: mymaster sentinels: 192.168.1.106:26379 readFromSlave: true slaves: slave1: host: 192.168.1.106 port: 6379 password: 123...

实际业务场景可能会根据一个个key去刷新缓存,但是如果出现特殊情况,还是希望能够批量刷新或者删除一个name下面的所有缓存,目前API有相关方法吗?

平常使用上没啥问题,但是每天总有若干报错,报错信息如下: 1 ERROR com.alicp.jetcache.AbstractCache- {"bltag":"log_error","errmsg":"jetcache(RedisCache) GET error. key=ComprehensiveAbility. redis.clients.jedis.exceptions.JedisConnectionException:Unexpected end of stream.", 2 ERROR com.alicp.jetcache.AbstractCache- {"bltag":"log_error","errmsg":"jetcache(RedisCache) GET error. key=ComprehensiveAbility. redis.clients.jedis.exceptions.JedisConnectionException:java.net.SocketException: Broken pipe (Write failed)\ncause by java.net.SocketException:Broken pipe (Write failed)" 3...