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

我先描述一下业务场景: 用户勾选了5个选项,参数是会传到后台来的,这时候我们可以将这个5个选项作为key去缓存。 但是用户不勾选这个五个选项,(参数是不会传到后台来的)我就需要去更新缓存,我希望是有一个模糊删除的方式,类似我不指定key,然后@CacheInvalidate(name="xxx.getCode",key = "#list" , multi = true) 方式变为 @CacheInvalidate(name="xxx.getCode",multi = true) 会将这个name开头的key都给删除掉。

## version : `com.alicp.jetcache: jetcache-starter-redis-lettuce: 2.6.0` ## case while have 2 method as below: ```java @Cached(area = "area", name = ":test:", key = "'def'", expire = 2, timeUnit = TimeUnit.HOURS)...

我觉得这样比较友好,因为这样可以很好兼容使用了以前的应用

项目使用Shiro,在继承Shiro的SimpleCredentialsMatcher类的子类中,调用带有@Cached的方法,缓存是不生效的。 public class SysCredentialsMatcher extends SimpleCredentialsMatcher { @Resource private ISysPasswordTypeService iSysPasswordTypeService; @Override public boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info) { //该方法使用注解@Cached,但是缓存不生效 SysPasswordType passwordType = iSysPasswordTypeService.getPasswordTypeByType(userPassword.getPwdType()); } } 同样的方法,在其他的服务中调用是能够成功将数据缓存到redis中

如题,在Cached或CreateCache里没有设置超时时间,按照文档描述,应该取jetcache.local.default.expireAfterWriteInMillis里配置的超时时间,实际取成了jetcache.remote.default.expireAfterWriteInMillis的时间 版本:2.6.0

jetcache如何遍历缓存,获取拿到所有的key

配置: ``` @Configuration @EnableMethodCache(basePackages = "cn.xxx.xxx") @EnableCreateCacheAnnotation public class JetCacheConfig { final static int CACHE_LIMIT_NUM = 1000; @Bean public SpringConfigProvider springConfigProvider() { SpringConfigProvider provider = new SpringConfigProvider(); return provider; }...