方式一,在 SpringBoot 中的使用时,设置配置文件 方式二,代码设置配置redis cache 缓存,默认使用java进行缓存,可配置redis缓存,两者可任意来回切换 Maven引入 <dependency> <groupId>com.xnx3.cache</groupId> <artifactId>xnx3-cache</artifactId> <version>1.2</version> </dependency> ...
RedisTemplate<String, Object> template =newRedisTemplate<>();//配置连接工厂template.setConnectionFactory(factory);//使用Jackson2JsonRedisSerializer来序列化和反序列化redis的value值(默认使用JDK的序列化方式)Jackson2JsonRedisSerializer jacksonSeial =newJackson2JsonRedisSerializer(Object.class); ObjectMapper om...
缓存同步 集成缓存组件agile-cache可实现缓存方式切换spring.cache.type ,如redis、ehcache、memory等方式,缓存使用请参照缓存组件https://gitee.com/agile-framework/agile-cache 复杂翻译 通过提供工具类cloud.agileframework.dictionary.util.DictionaryUtil,实现诸多复杂字典翻译方式,如字典码与字典值相互转换,根据父子字典...