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

使用kryo作为序列化反序列化工具时报:Class is not registered: 用大神遇到过吗?跪求解决方案! 报错信息: [2021-04-29 21:21:12,451] ERROR [] c.a.j.AbstractCache[58] - jetcache(RedisCache) PUT error. key=[[1]] com.alicp.jetcache.support.CacheEncodeException: Kryo Encode error. msg=Class is not registered: com.alicp.jetcache.CacheValueHolder Note: To register this class...

打扰,请教个问题: springboot(之前整合过redis)整合2.7.0.RC3版本lettuce pom: ``` com.alicp.jetcache jetcache-redis-lettuce ${jetcache.latest.version} com.alicp.jetcache jetcache-starter-redis-lettuce ${jetcache.latest.version} ``` 启动服务异常: The bean 'cacheManager', defined in class path resource [org/springframework/boot/autoconfigure/cache/JCacheCacheConfiguration.class], could not be registered. A bean with that name...

remote: # 指定远程缓存 default: type: redis.lettuce keyConvertor: fastjson # key转换器的全局配置,当前只有一个已经实现的keyConvertor:fastjson。仅当使用@CreateCache且缓存类型为LOCAL时可以指定为none,此时通过equals方法来识别key。方法缓存必须指定keyConvertor valueEncoder: java #序列化器的全局配置。仅remote类型的缓存需要指定,可选java和kryo,默认java valueDecoder: java #序列化器的全局配置。仅remote类型的缓存需要指定,可选java和kryo,默认java expireAfterWriteInMillis: 600000 #写入缓存十分钟后自动失效#以毫秒为单位指定超时时间的全局配置 limit: 10000 uri: redis-sentinel://${spring.redis.password}@xxx:26380,xxx:26379,xxx:26381/?sentinelMasterId=${spring.redis.sentinel.master} springboot 集成哨兵 模式 启动提示如下 : Caused by:...

@Cached写在接口上必须在实现类上也要写@Cached才可以在redis中找到缓存数据。如果实现类的@Cached去掉就是正常调用。同理如果只写在实现类上,接口上没有注解,必须要用实现类的引用去调用,不能通过接口引用去调用。如何能够只在接口上写注解,通过接口引用调用实现缓存,且具体实现类不用再写注解了

``` @CacheInvalidate(name = AliCacheConstant.XXX, key = "#XXX.iotId") String buyXXX(XXX xxx) throws CloudStorageException; ``` ``` @CreateCache(name = AliCacheConstant.XXX, cacheType = CacheType.BOTH, timeUnit = TimeUnit.SECONDS, expire = 5*60) private Cache X; ```...

```java @Override @Transactional @CacheInvalidate(name = "child4user::", key = "#child.getOwnerUserId()") public boolean add(Child child) { } @Override @Cached(name = "child4user::", key = "#userId", cacheType = CacheType.BOTH) public List getUserChild(String userId) {...

问题: - 两级缓存,本地缓存 linkedhashmap 和远程缓存 redis, 我在服务启动的时候希望能够自动将 redis 中已经缓存的数据预热刷新到 local cache 里面, - 我看了 cache 里面的方法, getall 需要通过 key 集合去获取,我这边 key 大概有 50w 个,如果我去查询数据库来构建这个 key 的话,查询的时间比较长。 - 希望能够提供一种方法,或者 api 去通过将...

希望jetcache可以支持r2dbc,可以支持Reactor缓存

如异常,Redis无法创建连接,会导致整个项目无法启动,有什么办法可以避免? ERROR [restartedMain] org.springframework.boot.SpringApplication [856] -| Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisLettuceAutoInit' defined in class path resource [com/alicp/jetcache/autoconfigure/RedisLettuceAutoConfiguration.class]: Invocation of init method failed; nested exception is...