多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 组件源码 /** * <b>方法描述:</b> 获得redisTemplate <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2020-06-09 10:16:43 <br/> * * @param redisTemplate * 出参|redisTemplate对象| * {@link org.springframework.data.redis.core.RedisTemplate} * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "获得redisTemplate", style = "判断型", type = "同步组件", comment = "获得redisTemplate对象,方便redis操作", version = "1.0.0", deprecated = false, author = "admin", date = "2020-06-09 10:16:43") @OutParams(param = { @Param(name = "redisTemplate", comment = "redisTemplate对象", type = org.springframework.data.redis.core.RedisTemplate.class) }) @Returns(returns = { @Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功") }) public static ResultBase P_getRedisTemplate() { return ResultBase.newSuccessResult(redisTemplate); } 交易中组件使用方式: ![](https://img.kancloud.cn/ab/9f/ab9f8243f157779b95b8da80c685b375_1488x1171.jpg) ## 参数说明及示例 redisTemplate对象:获取缓存中的redisTemplate对象,示例: `__INNER__["redis"]` > 获得redisTemplate对象,方便redis操作